Created
November 13, 2013 21:01
-
-
Save 5outh/7456330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main = mapM_ printNotExpr . lines =<< readFile "inputs.txt" | |
where printNotExpr e = case parseExpr e of | |
Right x -> print $ not x | |
Left e -> error $ show e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment