Skip to content

Commit e38719e

Browse files
committed
Add implementation for (+++)
1 parent d4fd6e8 commit e38719e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Language/Souffle/Analysis.hs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,13 @@ instance (Monad m, Monoid (m ())) => ArrowChoice (Analysis m) where
122122
left = left'
123123

124124
right = right'
125+
126+
Analysis f1 r1 g1 +++ Analysis f2 r2 g2 = Analysis f' (r1 <> r2) g'
127+
where
128+
f' = \case
129+
Left b -> f1 b
130+
Right b' -> f2 b'
131+
g' = \case
132+
Left b -> Left <$> g1 b
133+
Right b' -> Right <$> g2 b'
134+

0 commit comments

Comments
 (0)