| Copyright | (c) 2019-2020 Vaclav Svejcar |
|---|---|
| License | BSD-3 |
| Maintainer | vaclav.svejcar@gmail.com |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Headroom.Command.Init.Env
Description
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.
Constructors
| Env | |
Fields
| |
Instances
| HasLogFunc Env Source # | |
Defined in Headroom.Command.Init.Env | |
| HasPaths Env Source # | |
| HasInitOptions Env Source # | |
Defined in Headroom.Command.Init.Env Methods initOptionsL :: Lens' Env InitOptions Source # | |
data InitOptions Source #
Options for the Init command.
Constructors
| InitOptions | |
Fields
| |
Instances
| Show InitOptions Source # | |
Defined in Headroom.Command.Init.Env Methods showsPrec :: Int -> InitOptions -> ShowS # show :: InitOptions -> String # showList :: [InitOptions] -> ShowS # | |
Paths to various locations of file system.
Constructors
| Paths | |
Fields
| |
class HasInitOptions env where Source #
Environment value with Init command options.
Methods
initOptionsL :: Lens' env InitOptions Source #
Instances
| HasInitOptions Env Source # | |
Defined in Headroom.Command.Init.Env Methods initOptionsL :: Lens' Env InitOptions Source # | |