1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00

Use ScopedTypeVariables to allow type applications against erroring.

This commit is contained in:
Rob Rix 2018-05-04 19:38:14 -04:00
parent f83b002e78
commit 1e173c4f2c

View File

@ -1,4 +1,4 @@
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ScopedTypeVariables, TypeOperators #-}
module Analysis.Abstract.Erroring
( erroring
) where
@ -6,5 +6,5 @@ module Analysis.Abstract.Erroring
import Control.Effect
import Control.Monad.Effect.Resumable
erroring :: Effectful m => m (Resumable exc ': effects) result -> m effects (Either (SomeExc exc) result)
erroring :: forall exc m effects result . Effectful m => m (Resumable exc ': effects) result -> m effects (Either (SomeExc exc) result)
erroring = raiseHandler runError