[Haskell-beginners] Noob question.(I'm trying 'http://learnyouahaskell.com' tutorial)

Mait mattengi at gmail.com
Mon Apr 16 23:50:27 CEST 2012


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!'

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 )

     The type signature for take' lacks an accompanying binding
Failed, modules loaded: none.

Here is codepad link,


More information about the Beginners mailing list