mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
📝 WrappedTask.
This commit is contained in:
parent
536ae92e25
commit
bdddc0b836
@ -76,6 +76,7 @@ type StatQueue = AsyncQueue Stat StatsClient
|
||||
-- | A high-level task producing some result, e.g. parsing, diffing, rendering. 'Task's can also specify explicit concurrency via 'distribute', 'distributeFor', and 'distributeFoldMap'
|
||||
type Task = Eff '[Distribute WrappedTask, TaskF, Reader Options, Telemetry, Reader LogQueue, Reader StatQueue, Exc SomeException, IO]
|
||||
|
||||
-- | A wrapper for a 'Task', to embed in other effects.
|
||||
newtype WrappedTask a = WrapTask { unwrapTask :: Task a }
|
||||
deriving (Applicative, Functor, Monad)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user