Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- defaultToAbsolutePath :: forall e t f m. MonadNix e t f m => Path -> m Path
- expandHomePath :: MonadFile m => Path -> m Path
- removeDotDotIndirections :: Path -> Path
- (<///>) :: Path -> Path -> Path
- defaultFindEnvPath :: MonadNix e t f m => String -> m Path
- findEnvPathM :: forall e t f m. MonadNix e t f m => Path -> m Path
- findPathBy :: forall e t f m. MonadNix e t f m => (Path -> m (Maybe Path)) -> [NValue t f m] -> Path -> m Path
- fetchTarball :: forall e t f m. MonadNix e t f m => NValue t f m -> m (NValue t f m)
- defaultFindPath :: MonadNix e t f m => [NValue t f m] -> Path -> m Path
- findPathM :: forall e t f m. MonadNix e t f m => [NValue t f m] -> Path -> m Path
- defaultImportPath :: (MonadNix e t f m, MonadState (HashMap Path NExprLoc, b) m) => Path -> m (NValue t f m)
- defaultPathToDefaultNix :: MonadNix e t f m => Path -> m Path
- pathToDefaultNixFile :: MonadFile m => Path -> m Path
- defaultTraceEffect :: MonadPutStr m => String -> m ()
Documentation
removeDotDotIndirections :: Path -> Path Source #
Incorrectly normalize paths by rewriting patterns like ab..
to a
.
This is incorrect on POSIX systems, because if b
is a symlink, its
parent may be a different directory from a
. See the discussion at
https://hackage.haskell.org/package/directory-1.3.1.5/docs/System-Directory.html#v:canonicalizePath
findPathBy :: forall e t f m. MonadNix e t f m => (Path -> m (Maybe Path)) -> [NValue t f m] -> Path -> m Path Source #
defaultImportPath :: (MonadNix e t f m, MonadState (HashMap Path NExprLoc, b) m) => Path -> m (NValue t f m) Source #
defaultTraceEffect :: MonadPutStr m => String -> m () Source #