[Haskell-cafe] instance for (Show ([(String, Int)] -> Int))
aaronngray.lists at gmail.com
Fri Dec 24 19:17:51 CET 2010
How do I code an 'instance' declaration for '(Show ([(String, Int)] ->
I am new to instance declarations and am following the Happy examples :-
The compiler is requesting an instance declaration for Show :-
No instance for (Show ([(String, Int)] -> Int))
arising from a use of `print' at expr-eval.hs:334:23-27
add an instance declaration for (Show ([(String, Int)] -> Int))
In the first argument of `(.)', namely `print'
In the second argument of `(>>=)', namely `print . calc . lexer'
In the expression: getContents >>= print . calc . lexer
Many thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe