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

aditya siram aditya.siram at gmail.com
Tue Apr 17 00:29:38 CEST 2012


It's not working because you don't have a definition for take'. If you
want to fill it in later you can just do:

take' = undefined

-deech

On Mon, Apr 16, 2012 at 4:55 PM, Jakub Oboza <jakub.oboza at gmail.com> wrote:
> Because GHC is limited
>
> in GHC you cant do
>
> double a = a * a
>
> you have to put into let
> like this
>
> let double a = a * a
>
> Cheers!
>
> On 16 Apr 2012, at 22:50, Mait 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
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners



More information about the Beginners mailing list