Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-adam committed Jan 14, 2021
1 parent 302742f commit 9403517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/eta/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ eval EAS dir file = putExcept $ EAS.assemblyIO dir file
eval HAPAPL dir file = hapapl dir file

putExcept :: IO (Either String String) -> IO ()
putExcept io = putStrLn =<< (output <$> io)
putExcept io = putStrLn . output =<< io

output :: Either String String -> String
output (Right result) = result
Expand Down

0 comments on commit 9403517

Please sign in to comment.