on master help sign in
Update description of Env
1d35ef1Andrzej Rybczak
src/Effectful/Internal/Env.hs+4−4
@@ -1,6 +1,6 @@
1{-# LANGUAGE AllowAmbiguousTypes #-}
1{-# LANGUAGE AllowAmbiguousTypes #-}
2{-# OPTIONS_HADDOCK not-home #-}
2{-# OPTIONS_HADDOCK not-home #-}
3−-- | The environment for 'Effectful.Internal.Monad.Eff'.
3+-- | The environment for the 'Effectful.Internal.Monad.Eff' monad.
4--
4--
5-- This module is intended for internal use only, and may change without warning
5-- This module is intended for internal use only, and may change without warning
6-- in subsequent releases.
6-- in subsequent releases.
@@ -40,8 +40,8 @@ import Effectful.Internal.Effect
40
40
41type role Env nominal
41type role Env nominal
42
42
43−-- | A mutable, strict (elements are kept in weak head normal form), extensible
43+-- | A thread local, mutable, strict (elements are kept in weak head normal
44−-- record indexed by effect data types.
44+-- form), extensible record indexed by data types of kind 'Effect'.
45--
45--
46-- Supports forking, i.e. introduction of local branches for encapsulation of
46-- Supports forking, i.e. introduction of local branches for encapsulation of
47-- data specific to effect interpreters.
47-- data specific to effect interpreters.
@@ -54,7 +54,7 @@ type role Env nominal
54--
54--
55-- - Indexing via '(:>)': /O(forks)/, usually /O(1)/ (amortized).
55-- - Indexing via '(:>)': /O(forks)/, usually /O(1)/ (amortized).
56--
56--
57−-- - Modification of a specific element: /O(forks)/, usually /O(1)/.
57+-- - Modification of a specific element: /O(1)/.
58--
58--
59data Env (es :: [Effect]) = Env
59data Env (es :: [Effect]) = Env
60 { _forks :: Forks
60 { _forks :: Forks
tests/AsyncTests.hs+1
@@ -11,6 +11,7 @@ import Effectful.Async
11import Effectful.Error
11import Effectful.Error
12import Effectful.State.Dynamic
12import Effectful.State.Dynamic
13import Effectful.Monad
13import Effectful.Monad
14+
14import qualified Utils as U
15import qualified Utils as U
15
16
16asyncTests :: TestTree
17asyncTests :: TestTree