[Haskell-beginners] type question

Roelof Wobben rwobben at hotmail.com
Wed Jun 29 16:55:50 CEST 2011


Hello, 

I'm now following the book Programming in Haskel by Hutton.
IM now reading the chapter about types.

But I don't understand this : 

False :: Bool
True :: Bool 
¬  :: Bool  ---> Bool

So False  and True has the type Bool.
That's clear.

I find out that ¬ makes the opposite of True and False.
But why is it also the type Bool --> Bool 

Roelof

 


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110629/94b477a2/attachment.htm>


More information about the Beginners mailing list