| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Nix.Render
Documentation
class (MonadFail m, MonadIO m) => MonadFile (m :: Type -> Type) where Source #
Minimal complete definition
Nothing
Methods
readFile :: Path -> m Text Source #
default readFile :: forall (t :: (Type -> Type) -> Type -> Type) (m' :: Type -> Type). (MonadTrans t, MonadIO m', MonadFile m', m ~ t m') => Path -> m Text Source #
listDirectory :: Path -> m [Path] Source #
default listDirectory :: forall (t :: (Type -> Type) -> Type -> Type) (m' :: Type -> Type). (MonadTrans t, MonadFile m', m ~ t m') => Path -> m [Path] Source #
getCurrentDirectory :: m Path Source #
default getCurrentDirectory :: forall (t :: (Type -> Type) -> Type -> Type) (m' :: Type -> Type). (MonadTrans t, MonadFile m', m ~ t m') => m Path Source #
canonicalizePath :: Path -> m Path Source #
default canonicalizePath :: forall (t :: (Type -> Type) -> Type -> Type) (m' :: Type -> Type). (MonadTrans t, MonadFile m', m ~ t m') => Path -> m Path Source #
getHomeDirectory :: m Path Source #
default getHomeDirectory :: forall (t :: (Type -> Type) -> Type -> Type) (m' :: Type -> Type). (MonadTrans t, MonadFile m', m ~ t m') => m Path Source #
doesPathExist :: Path -> m Bool Source #
default doesPathExist :: forall (t :: (Type -> Type) -> Type -> Type) (m' :: Type -> Type). (MonadTrans t, MonadFile m', m ~ t m') => Path -> m Bool Source #
doesFileExist :: Path -> m Bool Source #
default doesFileExist :: forall (t :: (Type -> Type) -> Type -> Type) (m' :: Type -> Type). (MonadTrans t, MonadFile m', m ~ t m') => Path -> m Bool Source #
doesDirectoryExist :: Path -> m Bool Source #
default doesDirectoryExist :: forall (t :: (Type -> Type) -> Type -> Type) (m' :: Type -> Type). (MonadTrans t, MonadFile m', m ~ t m') => Path -> m Bool Source #
getSymbolicLinkStatus :: Path -> m FileStatus Source #
default getSymbolicLinkStatus :: forall (t :: (Type -> Type) -> Type -> Type) (m' :: Type -> Type). (MonadTrans t, MonadFile m', m ~ t m') => Path -> m FileStatus Source #
Instances
posAndMsg :: NSourcePos -> Doc a -> ParseError s Void Source #