1.

Difference between `data` and `newtype` in Haskell?

Answer»
S.noDataNEW type
1.It declares an entirely new data structure at RUNTIME.It GUARANTEES that data will have the exact same representation at runtime, as the type PROGRAMMERS wrap.
2.It introduces lazy value CONSTRUCTORIt introduces strict value constructor


Discussion

No Comment Found