hnix-0.5.1: Haskell implementation of the Nix language

Safe HaskellNone
LanguageHaskell2010

Nix.Context

Documentation

data Context m v Source #

Constructors

Context 

Fields

Instances

Has (Context m v) Options Source # 
Has (Context m v) Frames Source # 
Has (Context m v) SrcSpan Source # 
MonadReader (Context (Lint s) (SThunk (Lint s))) (Lint s) # 

Methods

ask :: Lint s (Context (Lint s) (SThunk (Lint s))) #

local :: (Context (Lint s) (SThunk (Lint s)) -> Context (Lint s) (SThunk (Lint s))) -> Lint s a -> Lint s a #

reader :: (Context (Lint s) (SThunk (Lint s)) -> a) -> Lint s a #

Monad m => MonadReader (Context (Lazy m) (NThunk (Lazy m))) (Lazy m) # 

Methods

ask :: Lazy m (Context (Lazy m) (NThunk (Lazy m))) #

local :: (Context (Lazy m) (NThunk (Lazy m)) -> Context (Lazy m) (NThunk (Lazy m))) -> Lazy m a -> Lazy m a #

reader :: (Context (Lazy m) (NThunk (Lazy m)) -> a) -> Lazy m a #

Has (Context m v) (Scopes m v) Source # 

Methods

hasLens :: Lens' (Context m v) (Scopes m v) Source #