[Haskell-beginners] GHCi won't allow type declaration as shown in LYAHFGG

Stan Kulp stan_kulp at yahoo.com
Thu May 31 21:48:02 CEST 2012


I have been working my way through "Learn You a Haskell for Greater Good" and am stumped when I get to the "Syntax in Functions - Pattern Matching" section.

The book shows the following expression...

ghci> lucky :: (Integral a) => a -> String  

...but when I try to execute it in GHCi I get the following error...

<interactive>:1:1: Not in scope: `lucky'

What am I missing? 

 
Stan Kulp
4421 W North Pinebrook Lane
Columbia, MO 65203


Home: 573-234-2065
Work: 573-522-5075
Cell: 573-864-6051
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120531/20d1311e/attachment.htm>


More information about the Beginners mailing list