Skip to content

Commit

Permalink
Merge pull request #964 from IntersectMBO/smelc/simplify-protocol-mag…
Browse files Browse the repository at this point in the history
…ic-parser

Parsers: avoid double usage of flip on a single line
  • Loading branch information
smelc authored Nov 12, 2024
2 parents 808d843 + a50286c commit 003373f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cardano-cli/src/Cardano/CLI/Byron/Parsers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,9 @@ parseProtocolMagicId arg =

parseProtocolMagic :: Parser ProtocolMagic
parseProtocolMagic =
flip AProtocolMagic RequiresMagic . flip L.Annotated ()
<$> parseProtocolMagicId "protocol-magic"
mkProtocol <$> parseProtocolMagicId "protocol-magic"
where
mkProtocol protMagicId = AProtocolMagic (L.Annotated protMagicId ()) RequiresMagic

parseTxFile :: String -> Parser (TxFile In)
parseTxFile opt =
Expand Down

0 comments on commit 003373f

Please sign in to comment.