Skip to content

Instantly share code, notes, and snippets.

@bryangarza
Created April 9, 2015 03:03
Show Gist options
  • Save bryangarza/36b54bf2374eb1987f25 to your computer and use it in GitHub Desktop.
Save bryangarza/36b54bf2374eb1987f25 to your computer and use it in GitHub Desktop.
*Parser> :load "Calc.hs"
[1 of 3] Compiling ExprT ( ExprT.hs, interpreted )
[2 of 3] Compiling Parser ( Parser.hs, interpreted )
[3 of 3] Compiling Calc ( Calc.hs, interpreted )
Calc.hs:50:14:
Couldn't match type ‘Integer’ with ‘Mod7’
Expected type: Integer -> Mod7 -> Mod7
Actual type: Mod7 -> Mod7 -> Mod7
In the first argument of ‘flip’, namely ‘mod’
In the expression: flip mod 7
Failed, modules loaded: Parser, ExprT.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment