mirror of
https://github.com/github/semantic.git
synced 2024-11-24 17:04:47 +03:00
stub out functor instance
This commit is contained in:
parent
d1dcb4c09e
commit
e3a46c4405
@ -15,3 +15,7 @@ import GHC.TypeLits (Symbol, Nat)
|
||||
-- @
|
||||
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