Skip to content

Commit

Permalink
Export Target type from ouroboros-network, to be more convenient to u…
Browse files Browse the repository at this point in the history
…sers
  • Loading branch information
smelc committed Jun 13, 2024
1 parent c634441 commit 39b0177
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cardano-api/cardano-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ library internal
Cardano.Api.Query.Expr
Cardano.Api.Query.Types
Cardano.Api.ReexposeLedger
Cardano.Api.ReexposeNetwork
Cardano.Api.Rewards
Cardano.Api.Script
Cardano.Api.ScriptData
Expand Down Expand Up @@ -241,6 +242,7 @@ library
-- cardano-api only depends on modules
-- exposed by cardano-api-ledger
Cardano.Api.Ledger
Cardano.Api.Network

reexported-modules: Cardano.Api.Ledger.Lens

Expand Down
4 changes: 4 additions & 0 deletions cardano-api/internal/Cardano/Api/ReexposeNetwork.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Cardano.Api.ReexposeNetwork
(Target(..)) where

import Ouroboros.Network.Protocol.LocalStateQuery.Type (Target (..))
6 changes: 6 additions & 0 deletions cardano-api/src/Cardano/Api/Network.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Cardano.Api.Network
( module Cardano.Api.ReexposeNetwork
)
where

import Cardano.Api.ReexposeNetwork

0 comments on commit 39b0177

Please sign in to comment.