[Haskell-beginners] Noob question.(I'm trying 'http://learnyouahaskell.com' tutorial)
Jack Henahan
jhenahan at uvm.edu
Tue Apr 17 04:56:22 CEST 2012
Additionally, "take' :: (Ord b, bum b) => b -> [a] -> [a]" should be "take' :: (Ord b, Num b) => b -> [a] -> [a]"
Jack Henahan
jhenahan at uvm.edu
==
Computer science is no more about computers than astronomy is about telescopes.
-- Michael R. Fellows
==
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PublicKey.asc
Type: application/x-apple-msg-attachment
Size: 24255 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120416/67f2e311/attachment.bin>
-------------- next part --------------
On Apr 16, 2012, at 5:50 PM, Mait <mattengi at gmail.com> wrote:
> ENV
>
> Ubuntu 12.04
> haskell-platform/precise uptodate 2012.1.0.0~debian
>
> ghci --version
> The Glorious Glasgow Haskell Compilation System, version 7.4.1
>
> I've tried all day with,
> 'Learn You a Haskell for Great Good!'
> http://learnyouahaskell.com/
>
> Very attractive book. I'm really enjoying this book.
>
> Anyway I have one question,
>
> Why I can't declare func type like books?
>
> I got always error about 'lacks an accompanying binding', like this,
>
> Prelude> :l baby.hs
> [1 of 1] Compiling Main ( baby.hs, interpreted )
>
> baby.hs:32:1:
> The type signature for take' lacks an accompanying binding
> Failed, modules loaded: none.
>
> Here is codepad link,
> http://codepad.org/ttZRBpkL
>
> Thanks.
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
More information about the Beginners
mailing list