data-effects-0.2.0.0: A basic framework for effect systems based on effects represented by GADTs.
Copyright(c) 2023 Sayo Koyoneda
LicenseMPL-2.0 (see the file LICENSE)
Maintainerymdfield@outlook.jp
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageGHC2021

Data.Effect.Concurrent.Thread

Description

 

Documentation

data Thread' tid (f :: Type -> Type) a where Source #

Constructors

ForkThread :: forall (f :: Type -> Type) tid. f () -> Thread' tid f tid 

Instances

Instances details
() => HFunctor (Thread' tid) Source # 
Instance details

Defined in Data.Effect.Concurrent.Thread

Methods

hfmap :: forall (f :: Type -> Type) (g :: Type -> Type). (f :-> g) -> Thread' tid f :-> Thread' tid g #

forkThread'_ :: SendHOE (Thread' tid) f => f () -> f tid Source #

forkThread' :: forall {k} (tag :: k) tid f. SendHOE (TagH (Thread' tid) tag) f => f () -> f tid Source #

forkThread'' :: forall {k} (key :: k) tid f. SendHOEBy key (Thread' tid) f => f () -> f tid Source #

forkThread :: SendHOEBy ThreadKey (Thread' tid) f => f () -> f tid Source #