Skip to content

Commit 1226a5a

Browse files
committed
Fix potential bug (TODO: review me)
1 parent f7f71dc commit 1226a5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/wire-api/src/Wire/API/Error.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ instance
188188

189189
type family DeclaredErrorEffects api :: EffectRow where
190190
DeclaredErrorEffects (CanThrow e :> api) = (ErrorEffect e ': DeclaredErrorEffects api)
191-
DeclaredErrorEffects (CanThrowMany '(e, es) :> api) =
191+
-- TODO: is this correct?
192+
DeclaredErrorEffects (CanThrowMany (e ': es) :> api) =
192193
DeclaredErrorEffects (CanThrow e :> CanThrowMany es :> api)
193194
DeclaredErrorEffects (x :> api) = DeclaredErrorEffects api
194195
DeclaredErrorEffects (Named n api) = DeclaredErrorEffects api

0 commit comments

Comments
 (0)