diff --git a/lib/api/cardano-wallet-api.cabal b/lib/api/cardano-wallet-api.cabal index 7f2f3a28a92..87e05a75e48 100644 --- a/lib/api/cardano-wallet-api.cabal +++ b/lib/api/cardano-wallet-api.cabal @@ -76,6 +76,7 @@ library , either , errors , extra + , file-embed , filepath , fmt , generic-lens @@ -102,6 +103,7 @@ library , servant-client-core , servant-server , streaming-commons + , template-haskell , text , text-class , time @@ -160,6 +162,10 @@ library Cardano.Wallet.Api.Types.WalletAssets Cardano.Wallet.Shelley Cardano.Wallet.Tracers + Cardano.Wallet.Version + Cardano.Wallet.Version.TH + other-modules: + Paths_cardano_wallet_api executable cardano-wallet import: language, opts-exe diff --git a/lib/wallet/src/Cardano/Wallet/Version.hs b/lib/api/src/Cardano/Wallet/Version.hs similarity index 98% rename from lib/wallet/src/Cardano/Wallet/Version.hs rename to lib/api/src/Cardano/Wallet/Version.hs index eaace3252fa..ec82cdbf282 100644 --- a/lib/wallet/src/Cardano/Wallet/Version.hs +++ b/lib/api/src/Cardano/Wallet/Version.hs @@ -53,7 +53,7 @@ import Fmt , fmt , padLeftF ) -import Paths_cardano_wallet +import Paths_cardano_wallet_api ( version ) diff --git a/lib/wallet/src/Cardano/Wallet/Version/TH.hs b/lib/api/src/Cardano/Wallet/Version/TH.hs similarity index 100% rename from lib/wallet/src/Cardano/Wallet/Version/TH.hs rename to lib/api/src/Cardano/Wallet/Version/TH.hs diff --git a/lib/wallet/cardano-wallet.cabal b/lib/wallet/cardano-wallet.cabal index 31cc220e5cc..9321859a7c6 100644 --- a/lib/wallet/cardano-wallet.cabal +++ b/lib/wallet/cardano-wallet.cabal @@ -79,7 +79,6 @@ library , exceptions , extra , fast-logger - , file-embed , filepath , fmt , foldl @@ -250,8 +249,6 @@ library Cardano.Wallet.Transaction.Delegation Cardano.Wallet.Transaction.Voting Cardano.Wallet.TypeLevel - Cardano.Wallet.Version - Cardano.Wallet.Version.TH Control.Concurrent.Concierge Control.Monad.Exception.Unchecked Control.Monad.Fail.Extended @@ -265,8 +262,6 @@ library Network.Ntp UnliftIO.Compat - other-modules: Paths_cardano_wallet - library mock-token-metadata import: language, opts-lib visibility: public