11 Nov
2011
11 Nov
'11
7:18 a.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
11 Nov
11 Nov
7:23 a.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/
5117
Age (days ago)
5117
Last active (days ago)
1 comments
2 participants
participants (2)
-
Costello, Roger L. -
Tony Morris