Skip to content
GitLab
Explore
Sign in
Register
Changes
Page history
Edit DerivingInstances
authored
Apr 15, 2008
by
sabaki
Hide whitespace changes
Inline
Side-by-side
deriving-instances.md
View page @
13192c16
...
@@ -72,6 +72,6 @@ As there are only a few fixed methods/classes that can be derived, we may choose
...
@@ -72,6 +72,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