mirror of
https://github.com/github/semantic.git
synced 2025-01-04 21:47:07 +03:00
Add Type.Alias constructor
This commit is contained in:
parent
155e0e05eb
commit
7bc345906f
@ -16,6 +16,13 @@ instance Eq1 Annotation where liftEq = genericLiftEq
|
||||
instance Ord1 Annotation where liftCompare = genericLiftCompare
|
||||
instance Show1 Annotation where liftShowsPrec = genericLiftShowsPrec
|
||||
|
||||
data Alias a = Alias { aliasSubject :: !a, aliasType :: !a }
|
||||
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Mergeable, Ord, Show, Traversable)
|
||||
|
||||
instance Eq1 Alias where liftEq = genericLiftEq
|
||||
instance Ord1 Alias where liftCompare = genericLiftCompare
|
||||
instance Show1 Alias where liftShowsPrec = genericLiftShowsPrec
|
||||
|
||||
data Function a = Function { functionParameters :: [a], functionReturn :: a }
|
||||
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Mergeable, Ord, Show, Traversable)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user