1
1
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:
Rob Rix 2018-10-23 16:48:56 -04:00
parent 1912fa20c1
commit 81c18a860d

View File

@ -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