| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Importify.Environment
Contents
Description
This module contains enrinment for importify cache command
which is running inside ReaderT env IO monad.
- newtype RIO env a = RIO {}
- data CacheEnvironment = CacheEnvironment {
- _pathToImportify :: !(Path Abs Dir)
- _ghcIncludeDir :: !(Maybe (Path Abs Dir))
- _saveSources :: !Bool
- type HasGhcIncludeDir env = HasPolyGhcIncludeDir env (Maybe (Path Abs Dir))
- type HasPathToImportify env = HasPolyPathToImportify env (Path Abs Dir)
- type HasSaveSources env = HasPolySaveSources env Bool
- ghcIncludeDir :: HasPolyGhcIncludeDir s a => Lens' s a
- pathToImportify :: HasPolyPathToImportify s a => Lens' s a
- pathToSymbols :: HasPathToImportify env => SimpleGetter env (Path Abs Dir)
- saveSources :: HasPolySaveSources s a => Lens' s a
- runCache :: Bool -> RIO CacheEnvironment () -> IO ()
Base monad for importify cache command
ReaderT + IO monad described here:
https://www.fpcomplete.com/blog/2017/07/the-rio-monad
Environment for importify cache command
data CacheEnvironment Source #
Environment for importify cache command.
Constructors
| CacheEnvironment | |
Fields
| |
type HasSaveSources env = HasPolySaveSources env Bool Source #
ghcIncludeDir :: HasPolyGhcIncludeDir s a => Lens' s a Source #
pathToImportify :: HasPolyPathToImportify s a => Lens' s a Source #
pathToSymbols :: HasPathToImportify env => SimpleGetter env (Path Abs Dir) Source #
Getter of ~/path/to/project/.importify/symbols folder.
saveSources :: HasPolySaveSources s a => Lens' s a Source #