
10 Nov
2011
10 Nov
'11
6:18 p.m.
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

10 Nov
10 Nov
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/
4940
Age (days ago)
4940
Last active (days ago)
1 comments
2 participants
participants (2)
-
Costello, Roger L.
-
Tony Morris