I’m a little confused as to the difference between a type and a data type in Haskell.
From the literature I have encountered I got the impression they were different concepts.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Type and data type refer to exactly the same concept.
The Haskell keywords
typeanddataare different, though:dataallows you to introduce a new algebraic data type, whiletypejust makes a type synonym.See the Haskell wiki for details.