Skip to content

Commit

Permalink
Parsers: avoid double usage of flip on a single line :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Nov 8, 2024
1 parent 808d843 commit a50286c
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 a50286c

Please sign in to comment.