Skip to content
GitLab
Explore
Sign in
Register
Changes
Page history
Edit DerivingInstances
authored
Apr 15, 2008
by
sabaki
Show whitespace changes
Inline
Side-by-side
deriving-instances.md
View page @
978df54e
...
@@ -57,6 +57,6 @@ As there are only a few fixed methods/classes that can be derived, we may choose
...
@@ -57,6 +57,6 @@ As there are only a few fixed methods/classes that can be derived, we may choose
class Eq a where
class Eq a where
(==) :: a -> a -> Bool
(==) :: a -> a -> Bool
(/=) :: a -> a -> Bool
(/=) :: a -> a -> Bool
-- (==) has a magic way of be derived for datatypes
-- (==) has a magic way of be
ing
derived for datatypes
x /= y = not (x == y)
x /= y = not (x == y)
```
```
\ No newline at end of file