-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move parsing helpers from API #894
Conversation
3637569
to
db1c97a
Compare
@@ -101,6 +106,22 @@ ensureNewFile writer outFile blob = do | |||
ensureNewFileLBS :: FilePath -> ByteString -> ExceptT HelpersError IO () | |||
ensureNewFileLBS = ensureNewFile BS.writeFile | |||
|
|||
bounded :: forall a. (Bounded a, Integral a, Show a) => String -> Opt.ReadM a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here:
Opt.option (bounded "TESTNET_MAGIC") $ |
(and in multiple other places in this file)
cabal.project
Outdated
@@ -58,3 +58,8 @@ write-ghc-environment-files: always | |||
-- Do NOT add more source-repository-package stanzas here unless they are strictly | |||
-- temporary! Please read the section in CONTRIBUTING about updating dependencies. | |||
|
|||
source-repository-package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need SRP for this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initially I wanted to show this was compatible with IntersectMBO/cardano-api#635, but yeah you're right. Removed the SRP.
db1c97a
to
204cc97
Compare
204cc97
to
854e56e
Compare
854e56e
to
0e0a107
Compare
0e0a107
to
fcec670
Compare
Changelog
Context
Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.
How to trust this PR
Code compiling suffices, because this PR doesn't change the runtime behavior.
Checklist