mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
Add Type.Slice constructor
This commit is contained in:
parent
48daa20312
commit
f145782dfe
@ -42,3 +42,9 @@ newtype SendChannel a = SendChannel { sendChannelElementType :: a }
|
||||
|
||||
instance Eq1 SendChannel where liftEq = genericLiftEq
|
||||
instance Show1 SendChannel where liftShowsPrec = genericLiftShowsPrec
|
||||
|
||||
newtype Slice a = Slice { sliceElementType :: a }
|
||||
deriving (Diffable, Eq, Foldable, Functor, GAlign, Generic1, Show, Traversable)
|
||||
|
||||
instance Eq1 Slice where liftEq = genericLiftEq
|
||||
instance Show1 Slice where liftShowsPrec = genericLiftShowsPrec
|
||||
|
@ -49,6 +49,7 @@ type Syntax =
|
||||
, Type.BiDirectionalChannel
|
||||
, Type.ReceiveChannel
|
||||
, Type.SendChannel
|
||||
, Type.Slice
|
||||
, []
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user