1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00

Derive a Typeable instance for Error.

This commit is contained in:
Rob Rix 2017-08-29 17:33:19 -04:00 committed by joshvera
parent bc6292e966
commit 8801b21c77

View File

@ -10,10 +10,12 @@ import Data.List.NonEmpty (nonEmpty)
import Data.Semigroup
import Data.Source
import Data.Span
import Data.Typeable
import GHC.Stack
import System.Console.ANSI
data Error grammar = HasCallStack => Error { errorSpan :: Span, errorExpected :: [grammar], errorActual :: Maybe grammar }
deriving (Typeable)
deriving instance Eq grammar => Eq (Error grammar)
deriving instance Foldable Error