29 Aug
2017
29 Aug
'17
11:20 p.m.
The type of both True and False is Bool. Just like the type of 1 and
2 and 3 is Integer.
Bool and Integer are types. True, False, and 42 are all values.
On Tue, Aug 29, 2017 at 11:04 AM, Shishir Srivastava
Just revisiting haskell after a hiatus and to begin that with a rather uncalled for query -
In the system type declaration for the data type Bool as below what are the types of the two values 'True' and 'False'
data Bool = False | True
Are the values 'String' ? In which case how's the Bool data type different from String enumerator data type ?
Thanks, S
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners