hnix-0.16.0: Haskell implementation of the Nix language
Safe HaskellNone
LanguageHaskell2010

Nix.Render

Documentation

class (MonadFail m, MonadIO m) => MonadFile m where Source #

Minimal complete definition

Nothing

Methods

readFile :: Path -> m Text Source #

default readFile :: (MonadTrans t, MonadIO m', MonadFile m', m ~ t m') => Path -> m Text Source #

listDirectory :: Path -> m [Path] Source #

default listDirectory :: (MonadTrans t, MonadFile m', m ~ t m') => Path -> m [Path] Source #

getCurrentDirectory :: m Path Source #

default getCurrentDirectory :: (MonadTrans t, MonadFile m', m ~ t m') => m Path Source #

canonicalizePath :: Path -> m Path Source #

default canonicalizePath :: (MonadTrans t, MonadFile m', m ~ t m') => Path -> m Path Source #

getHomeDirectory :: m Path Source #

default getHomeDirectory :: (MonadTrans t, MonadFile m', m ~ t m') => m Path Source #

doesPathExist :: Path -> m Bool Source #

default doesPathExist :: (MonadTrans t, MonadFile m', m ~ t m') => Path -> m Bool Source #

doesFileExist :: Path -> m Bool Source #

default doesFileExist :: (MonadTrans t, MonadFile m', m ~ t m') => Path -> m Bool Source #

doesDirectoryExist :: Path -> m Bool Source #

default doesDirectoryExist :: (MonadTrans t, MonadFile m', m ~ t m') => Path -> m Bool Source #

getSymbolicLinkStatus :: Path -> m FileStatus Source #

default getSymbolicLinkStatus :: (MonadTrans t, MonadFile m', m ~ t m') => Path -> m FileStatus Source #

Instances

Instances details
MonadFile IO Source # 
Instance details

Defined in Nix.Render

(MonadFail m, MonadFile m) => MonadFile (StdIdT m) Source # 
Instance details

Defined in Nix.Fresh.Basic

(MonadFix1T t m, MonadIO (Fix1T t m), MonadFail (Fix1T t m), MonadFile m) => MonadFile (Fix1T t m) Source # 
Instance details

Defined in Nix.Render

errorContext :: Path -> Pos -> Pos -> Pos -> Pos -> Doc a Source #

sourceContext :: MonadFile m => Path -> Pos -> Pos -> Pos -> Pos -> Doc a -> m (Doc a) Source #