mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Add labeled construction syntax
This commit is contained in:
parent
c58c9556e6
commit
6fcc0fe981
@ -908,3 +908,12 @@ instance Ord1 PatternGuard where liftCompare = genericLiftCompare
|
||||
instance Show1 PatternGuard where liftShowsPrec = genericLiftShowsPrec
|
||||
|
||||
instance Evaluatable PatternGuard
|
||||
|
||||
data LabeledConstruction a = LabeledConstruction { labeledConstructionConstructor :: a, labeledConstructionFields :: [a] }
|
||||
deriving (Declarations1, Diffable, Eq, Foldable, FreeVariables1, Functor, Generic1, Hashable1, Mergeable, Ord, Show, ToJSONFields1, Traversable)
|
||||
|
||||
instance Eq1 LabeledConstruction where liftEq = genericLiftEq
|
||||
instance Ord1 LabeledConstruction where liftCompare = genericLiftCompare
|
||||
instance Show1 LabeledConstruction where liftShowsPrec = genericLiftShowsPrec
|
||||
|
||||
instance Evaluatable LabeledConstruction
|
||||
|
Loading…
Reference in New Issue
Block a user