mirror of
https://github.com/haskell-effectful/effectful.git
synced 2024-11-27 01:45:16 +03:00
Name fields of Env for clarity
This commit is contained in:
parent
7975895c8c
commit
3a69865217
@ -57,7 +57,11 @@ type role Env nominal
|
||||
--
|
||||
-- - Modification of a specific element: /O(forks)/, usually /O(1)/.
|
||||
--
|
||||
data Env (es :: [Effect]) = Env Forks (IORef EnvRef) UniqueGen
|
||||
data Env (es :: [Effect]) = Env
|
||||
{ _forks :: Forks
|
||||
, _globalRef :: IORef EnvRef
|
||||
, _uniqueGen :: UniqueGen
|
||||
}
|
||||
|
||||
-- | Local forks of the environment.
|
||||
data Forks = Forks {-# UNPACK #-} ForkId (IORef EnvRef) Forks | NoFork
|
||||
|
Loading…
Reference in New Issue
Block a user