[Haskell-beginners] Multiline code in GHCi

Shishir Srivastava shishir.srivastava at gmail.com
Tue Aug 29 15:04:53 UTC 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20170829/6449be24/attachment-0001.html>


More information about the Beginners mailing list