File tree 4 files changed +8
-4
lines changed
cardano-cli/src/Cardano/CLI
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ module Cardano.CLI.Compatible.Exception
10
10
, fromEitherCli
11
11
, fromEitherIOCli
12
12
, fromExceptTCli
13
- , readFileCli
14
13
)
15
14
where
16
15
@@ -70,6 +69,3 @@ fromExceptTCli
70
69
=> ExceptT e IO a
71
70
-> m a
72
71
fromExceptTCli = withFrozenCallStack $ fromEitherIOCli . runExceptT
73
-
74
- readFileCli :: (HasCallStack , MonadIO m ) => FilePath -> m ByteString
75
- readFileCli = withFrozenCallStack . readFileBinary
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ import Cardano.CLI.EraIndependent.Node.Run
56
56
, runNodeKeyGenVrfCmd
57
57
)
58
58
import Cardano.CLI.IO.Lazy qualified as Lazy
59
+ import Cardano.CLI.Read
59
60
import Cardano.CLI.Type.Common
60
61
import Cardano.CLI.Type.Error.GenesisCmdError
61
62
import Cardano.CLI.Type.Error.NodeCmdError
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import Cardano.CLI.EraBased.Governance.GenesisKeyDelegationCertificate.Run
23
23
import Cardano.CLI.EraBased.Governance.Run
24
24
import Cardano.CLI.Legacy.Governance.Command
25
25
import Cardano.CLI.Orphan ()
26
+ import Cardano.CLI.Read
26
27
import Cardano.CLI.Type.Common
27
28
import Cardano.CLI.Type.Error.GovernanceCmdError
28
29
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ module Cardano.CLI.Read
96
96
97
97
-- * Genesis hashes
98
98
, readShelleyOnwardsGenesisAndHash
99
+ , readFileCli
99
100
)
100
101
where
101
102
@@ -127,6 +128,7 @@ import Cardano.Crypto.Hash qualified as Crypto
127
128
import Cardano.Ledger.Api qualified as L
128
129
import Cardano.Ledger.Hashes qualified as L
129
130
131
+ import RIO (readFileBinary )
130
132
import Prelude
131
133
132
134
import Control.Exception (bracket )
@@ -151,6 +153,7 @@ import Data.Text.Encoding.Error qualified as Text
151
153
import Data.Word
152
154
import GHC.IO.Handle (hClose , hIsSeekable )
153
155
import GHC.IO.Handle.FD (openFileBlocking )
156
+ import GHC.Stack
154
157
import Options.Applicative qualified as Opt
155
158
import System.IO (IOMode (ReadMode ))
156
159
@@ -1061,3 +1064,6 @@ getVerificationKeyFromStakePoolVerificationKeySource = \case
1061
1064
[ FromSomeType (AsVerificationKey AsStakePoolKey ) AnyStakePoolNormalVerificationKey
1062
1065
, FromSomeType (AsVerificationKey AsStakePoolExtendedKey ) AnyStakePoolExtendedVerificationKey
1063
1066
]
1067
+
1068
+ readFileCli :: (HasCallStack , MonadIO m ) => FilePath -> m ByteString
1069
+ readFileCli = withFrozenCallStack . readFileBinary
You can’t perform that action at this time.
0 commit comments