top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

what is the difference between “data” and “New type” in Haskel?

0 votes
177 views
what is the difference between “data” and “New type” in Haskel?
posted Jun 28, 2016 by Satyam

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

There definitions are:
Newtype: It guarantees that your data will have exactly the same representation at runtime, like the type that you wrap
Data: It declares a brand new data structure at runtime

answer Jun 28, 2016 by Shivam Kumar Pandey
...