mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Specialize null for B.
This commit is contained in:
parent
1912fa20c1
commit
81c18a860d
@ -162,6 +162,9 @@ instance Foldable B where
|
||||
go (L a) = f a
|
||||
go (B a b) = go a <> go b
|
||||
|
||||
null E = True
|
||||
null _ = False
|
||||
|
||||
instance Applicative B where
|
||||
pure = L
|
||||
E <*> _ = E
|
||||
|
Loading…
Reference in New Issue
Block a user