1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

stub out functor instance

This commit is contained in:
Ayman Nadeem 2020-04-24 13:32:18 -04:00
parent d1dcb4c09e
commit e3a46c4405

View File

@ -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)