diff --git a/semantic-ast/src/AST/Parse.hs b/semantic-ast/src/AST/Parse.hs index 2d94c8612..f2be2a4b1 100644 --- a/semantic-ast/src/AST/Parse.hs +++ b/semantic-ast/src/AST/Parse.hs @@ -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)