
22 Dec
2013
22 Dec
'13
5:40 p.m.
On Sun, Dec 22, 2013 at 12:23:42PM -0500, Patrick Lynch wrote:
Good morning, I'm going through Graham Hutton's link on Category Theory [and yes I understand that you needn't study CT in order to use Haskell] and he uses Cons. I realize that Cons may be a synonym for ':'. But can someone tell me how to search the Haskell Library to find the module containing Cons? Thank you and Merry Christmas
Cons is (:) and is defined in GHC.Types. λ> :i (:) data [] a = ... | a : [a] -- Defined in `GHC.Types' infixr 5 : You could also try hoogle. http://www.haskell.org/hoogle/?hoogle=cons -- Vikraman