[Haskell-beginners] Understandig types

moowoo9 at fastmail.fm moowoo9 at fastmail.fm
Sat Jul 2 17:37:29 CEST 2011


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




More information about the Beginners mailing list