Skip to content

Commit

Permalink
Annotate type parameters of EffectHandler with their kinds
Browse files Browse the repository at this point in the history
  • Loading branch information
arybczak committed Aug 8, 2024
1 parent cb97e86 commit 45a5592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion effectful-core/src/Effectful/Dispatch/Dynamic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ imposeWith runHandlerEs m handler = impose runHandlerEs handler m
-- | Type signature of a first order effect handler.
--
-- @since 2.4.0.0
type EffectHandler_ e es
type EffectHandler_ (e :: Effect) (es :: [Effect])
= forall a localEs. HasCallStack
=> e (Eff localEs) a
-- ^ The operation.
Expand Down
2 changes: 1 addition & 1 deletion effectful-core/src/Effectful/Internal/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ type role LocalEnv nominal nominal
newtype LocalEnv (localEs :: [Effect]) (handlerEs :: [Effect]) = LocalEnv (Env localEs)

-- | Type signature of the effect handler.
type EffectHandler e es
type EffectHandler (e :: Effect) (es :: [Effect])
= forall a localEs. (HasCallStack, e :> localEs)
=> LocalEnv localEs es
-- ^ Capture of the local environment for handling local 'Eff' computations
Expand Down

0 comments on commit 45a5592

Please sign in to comment.