You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add section on Deriving to the Differences from Haskell page (documentationjs#103)
* Changing spelling of "Purescript" to "PureScript"
* Add section on Deriving to the Differences from Haskell page.
* Fix explanation of deriving from feedback received on PR.
for a list of other type classes that have generic implementations, as well as
191
+
an explanation of how to write generic implementations for your own type
192
+
classes.
193
+
164
194
### Orphan Instances
165
195
166
-
Unlike Haskell, orphan instances are completely disallowed in Purescript. It is a compiler error to try to declare orphan instances.
196
+
Unlike Haskell, orphan instances are completely disallowed in PureScript. It is a compiler error to try to declare orphan instances.
167
197
168
198
When instances cannot be declared in the same module, one way to work around it is to use [newtype wrappers](http://stackoverflow.com/questions/22080564/whats-the-practical-value-of-all-those-newtype-wrappers-in-data-monoid).
0 commit comments