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:
parent
bc6292e966
commit
8801b21c77
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user