mirror of
https://github.com/github/semantic.git
synced 2024-11-24 17:04:47 +03:00
auto-derive Functor and everything else
This commit is contained in:
parent
fae94854fd
commit
0af40b260a
@ -17,6 +17,3 @@ import GHC.Generics (Generic, Generic1)
|
||||
data Err fail succeed = parseL (fail :: String) | parseR (succeed :: Symbol)
|
||||
deriving (Eq, Foldable, Functor, Generic, Generic1, Ord, Show, Traversable)
|
||||
|
||||
instance Functor (Err a) where
|
||||
fmap f (parseL x) = parseL x
|
||||
fmap f (parseR y) = parseR (f y)
|
||||
|
Loading…
Reference in New Issue
Block a user