mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
Add the Error type as a Branch
This commit is contained in:
parent
30d4645dbb
commit
882c7c2242
@ -108,7 +108,7 @@ instance HasCategory Category where
|
||||
instance (HasCategory leaf, HasField fields Category) => HasCategory (Term leaf (Record fields)) where
|
||||
toCategoryName = toCategoryName . category . extract
|
||||
|
||||
data Branch = BIndexed | BFixed | BCommented deriving (Show, Eq, Generic)
|
||||
data Branch = BIndexed | BFixed | BCommented | BError deriving (Show, Eq, Generic)
|
||||
instance Arbitrary Branch where
|
||||
arbitrary = oneof [ pure BIndexed, pure BFixed ]
|
||||
shrink = genericShrink
|
||||
|
Loading…
Reference in New Issue
Block a user