Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- defaultMakeAbsolutePath :: MonadNix e t f m => FilePath -> m FilePath
- expandHomePath :: MonadFile m => FilePath -> m FilePath
- removeDotDotIndirections :: FilePath -> FilePath
- (<///>) :: FilePath -> FilePath -> FilePath
- defaultFindEnvPath :: MonadNix e t f m => String -> m FilePath
- findEnvPathM :: forall e t f m. MonadNix e t f m => FilePath -> m FilePath
- findPathBy :: forall e t f m. MonadNix e t f m => (FilePath -> m (Maybe FilePath)) -> [NValue t f m] -> FilePath -> m FilePath
- 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] -> FilePath -> m FilePath
- findPathM :: forall e t f m. MonadNix e t f m => [NValue t f m] -> FilePath -> m FilePath
- defaultImportPath :: (MonadNix e t f m, MonadState (HashMap FilePath NExprLoc) m) => FilePath -> m (NValue t f m)
- defaultPathToDefaultNix :: MonadNix e t f m => FilePath -> m FilePath
- pathToDefaultNixFile :: MonadFile m => FilePath -> m FilePath
- defaultDerivationStrict :: forall e t f m. MonadNix e t f m => NValue t f m -> m (NValue t f m)
- defaultTraceEffect :: MonadPutStr m => String -> m ()
Documentation
removeDotDotIndirections :: FilePath -> FilePath 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 => (FilePath -> m (Maybe FilePath)) -> [NValue t f m] -> FilePath -> m FilePath Source #
defaultImportPath :: (MonadNix e t f m, MonadState (HashMap FilePath NExprLoc) m) => FilePath -> m (NValue t f m) Source #
defaultDerivationStrict :: forall e t f m. MonadNix e t f m => NValue t f m -> m (NValue t f m) Source #
defaultTraceEffect :: MonadPutStr m => String -> m () Source #