1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 04:51:57 +03:00

Add a section header for the instances.

This commit is contained in:
Rob Rix 2017-05-03 09:35:51 -04:00
parent 14c12b3582
commit ae9fc6ea4f

View File

@ -165,6 +165,9 @@ data AssignmentState grammar = AssignmentState
} }
deriving (Eq, Show) deriving (Eq, Show)
-- Instances
instance Enum symbol => Alternative (Assignment (Node symbol)) where instance Enum symbol => Alternative (Assignment (Node symbol)) where
empty = Empty `Then` return empty = Empty `Then` return
a <|> b = case (a, b) of a <|> b = case (a, b) of