mirror of
https://github.com/github/semantic.git
synced 2024-12-27 00:44:57 +03:00
Reorder the contexts for ease of type application.
This commit is contained in:
parent
6e1383d2de
commit
d70a169e93
@ -8,13 +8,13 @@ module Analysis.Effect.Env
|
||||
|
||||
import Control.Effect.Carrier
|
||||
|
||||
alloc :: (Carrier sig m, Member (Env name addr) sig) => name -> m addr
|
||||
alloc :: (Member (Env name addr) sig, Carrier sig m) => name -> m addr
|
||||
alloc name = send (Alloc name pure)
|
||||
|
||||
bind :: (Carrier sig m, Member (Env name addr) sig) => name -> addr -> m a -> m a
|
||||
bind :: (Member (Env name addr) sig, Carrier sig m) => name -> addr -> m a -> m a
|
||||
bind name addr m = send (Bind name addr m pure)
|
||||
|
||||
lookupEnv :: (Carrier sig m, Member (Env name addr) sig) => name -> m (Maybe addr)
|
||||
lookupEnv :: (Member (Env name addr) sig, Carrier sig m) => name -> m (Maybe addr)
|
||||
lookupEnv name = send (Lookup name pure)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user