
8 May
2009
8 May
'09
2:49 p.m.
Am Freitag 08 Mai 2009 19:18:37 schrieb Brandon S. Allbery KF8NH:
On May 8, 2009, at 12:00 , Neil Brown wrote:
If you change fromInteger in Num Bool to be fromInteger x = x /= 0, then we could all start writing nasty C-like if-expressions...
I'd be strongly tempted to say
fromInteger = const False
fromInteger _ = unsafePerformIO $ randomRIO (False,True) looks safer to me.