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 9286b92
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 9286b92

Please sign in to comment.