[Haskell-cafe] data vs type

2006-01-04 Thread Daniel Carrera
Hello all, I'm trying to figure out how 'data' and 'type'. I haven't read any documentation because I can't find any. Could someone point me to a document explaining these? I'm happy to RTFM, I just need to know where the FM is :) Cheers, Daniel. -- /\/`) http://oooauthors.org

Re: [Haskell-cafe] data vs type

2006-01-04 Thread Ketil Malde
Daniel Carrera [EMAIL PROTECTED] writes: I'm trying to figure out how 'data' and 'type'. How data and type...what? :-) Generally, 'type' introduces type synonyms, i.e. just gives a new name to an existing type, while 'data' defines new (algebraic) types. So you can use type Name = String

Re: [Haskell-cafe] data vs type

2006-01-04 Thread Christian Maeder
Daniel Carrera wrote: Hello all, I'm trying to figure out how 'data' and 'type'. I haven't read any documentation because I can't find any. Could someone point me to a document explaining these? I'm happy to RTFM, I just need to know where the FM is :)

Re: [Haskell-cafe] data vs type

2006-01-04 Thread Daniel Carrera
Ketil Malde wrote: I'm trying to figure out how 'data' and 'type'. How data and type...what? :-) oops... work :) Generally, 'type' introduces type synonyms, i.e. just gives a new name to an existing type, while 'data' defines new (algebraic) types. So you can use type Name = String

Re: [Haskell-cafe] data vs type

2006-01-04 Thread Daniel Carrera
Christian Maeder wrote: http://www.isi.edu/~hdaume/htut/tutorial.pdf 4.5 Data Types 47 8 Advanced Types 103 8.1 Type Synonyms Thanks! Daniel. -- /\/`) http://oooauthors.org /\/_/ http://opendocumentfellowship.org /\/_/ \/_/I am not over-weight, I am under-tall. /