
10 Nov
2011
10 Nov
'11
6:23 p.m.
On 11/11/2011 09:18 AM, Costello, Roger L. wrote:
Hi Folks,
Consider this function:
true = (\x y -> x)
When I type this at WinGHCi:
true
I would like WinGHCi to show this string:
TRUE
Is there a way to "show" a function?
/Roger
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners You can do it easily if you wrap your function up in a newtype:
http://paste.pocoo.org/show/506051/ -- Tony Morris http://tmorris.net/