Copyright | (c) 2019-2020 Vaclav Svejcar |
---|---|
License | BSD-3 |
Maintainer | vaclav.svejcar@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Data types and instances for the Init command environment.
Synopsis
- data Env = Env {
- envLogFunc :: !LogFunc
- envInitOptions :: !InitOptions
- envPaths :: !Paths
- data InitOptions = InitOptions {
- ioSourcePaths :: ![FilePath]
- ioLicenseType :: !LicenseType
- data Paths = Paths {
- pCurrentDir :: !FilePath
- pConfigFile :: !FilePath
- pTemplatesDir :: !FilePath
- class HasInitOptions env where
- initOptionsL :: Lens' env InitOptions
- class HasPaths env where
Documentation
RIO Environment for the Init command.
Env | |
|
Instances
HasLogFunc Env Source # | |
Defined in Headroom.Command.Init.Env | |
HasPaths Env Source # | |
HasInitOptions Env Source # | |
Defined in Headroom.Command.Init.Env initOptionsL :: Lens' Env InitOptions Source # |
data InitOptions Source #
Options for the Init command.
InitOptions | |
|
Instances
Show InitOptions Source # | |
Defined in Headroom.Command.Init.Env showsPrec :: Int -> InitOptions -> ShowS # show :: InitOptions -> String # showList :: [InitOptions] -> ShowS # |
Paths to various locations of file system.
Paths | |
|
class HasInitOptions env where Source #
Environment value with Init command options.
initOptionsL :: Lens' env InitOptions Source #
Instances
HasInitOptions Env Source # | |
Defined in Headroom.Command.Init.Env initOptionsL :: Lens' Env InitOptions Source # |