[Haskell-beginners] Understandig types
David Place
d at vidplace.com
Sat Jul 2 17:56:49 CEST 2011
All of your questions are answered very nicely in this tutorial:
> http://learnyouahaskell.com/types-and-typeclasses
____________________
David Place
Owner, Panpipes Ho! LLC
http://panpipesho.com
d at vidplace.com
On Jul 2, 2011, at 11:37 AM, moowoo9 at fastmail.fm wrote:
> Hi everyone. I've got a few questions about the Haskell programming
> language.
>
> 1) what's the difference between these two code statements? I'm
> convinced they should be the same
>
> type T = [Char]
> type CurrentValue = Char
>
> My concern is that in the second one there are no brackets
>
> Anyway they are actually declarations arent'they?
>
> 2) What is Maybe String?
>
> For instance: type P = (Char, Maybe String)
>
> Is that a function which has two arguments ?
>
> 3) What is Maybe Char ?
>
> For instance : type D = ((Maybe Char) , Char)
>
> It's another function having three arguments..am I right?
>
> Thanks a lot. 777P
>
> --
>
> moowoo9 at fastmail.fm
>
>
> --
> http://www.fastmail.fm - The professional email service
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
More information about the Beginners
mailing list