mirror of
https://github.com/github/semantic.git
synced 2024-11-24 17:04:47 +03:00
Generalize runUnspecialized/With to any Effectful context.
This commit is contained in:
parent
0ad398c38b
commit
ff61b62efe
@ -135,10 +135,10 @@ deriving instance Show (Unspecialized a b)
|
|||||||
instance Show1 (Unspecialized a) where
|
instance Show1 (Unspecialized a) where
|
||||||
liftShowsPrec _ _ = showsPrec
|
liftShowsPrec _ _ = showsPrec
|
||||||
|
|
||||||
runUnspecialized :: Evaluator location value (Resumable (Unspecialized value) ': effects) a -> Evaluator location value effects (Either (SomeExc (Unspecialized value)) a)
|
runUnspecialized :: Effectful (m location value) => m location value (Resumable (Unspecialized value) ': effects) a -> m location value effects (Either (SomeExc (Unspecialized value)) a)
|
||||||
runUnspecialized = runResumable
|
runUnspecialized = runResumable
|
||||||
|
|
||||||
runUnspecializedWith :: (forall resume . Unspecialized value resume -> Evaluator location value effects resume) -> Evaluator location value (Resumable (Unspecialized value) ': effects) a -> Evaluator location value effects a
|
runUnspecializedWith :: Effectful (m location value) => (forall resume . Unspecialized value resume -> m location value effects resume) -> m location value (Resumable (Unspecialized value) ': effects) a -> m location value effects a
|
||||||
runUnspecializedWith = runResumableWith
|
runUnspecializedWith = runResumableWith
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user