Declaring Types
Last updated
Was this helpful?
Last updated
Was this helpful?
We have already explored the basic types of Haskell in , so now we will look into how we can define our own types. There are three different ways in which we can define new types in Haskell – Type synonyms (or Type aliases), Data declarations, and Newtype declarations.