| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Drasil.Generator.WriteSystem
Synopsis
- drasilMakefileReqOpts :: WriteOptions
- concretizeAndWrite :: ToFiles sys concOpts => sys -> concOpts -> WriteOptions -> IO ()
- setSystemLocale :: IO ()
- data WriteOptions = WO {
- overwritePolicy :: OverwritePolicy
- localDirName :: forall sys. HasSystemMeta sys => sys -> PathSegment
- textEncoding :: TextEncoding
- debugDataPolicy :: DebugDataPolicy
- data DebugDataPolicy
Documentation
drasilMakefileReqOpts :: WriteOptions Source #
These are the default file-writing WriteOptions required for Drasil (the
main Makefile will not play well otherwise).
Options:
overwritePolicy: Always allow file-overwriting.dirName: The example's abbreviation.textEncoding: UTF-8.debugDataPolicy: Dependant onDEBUG_ENVenvironment variable being set, writing to a nested `.drasil` folder.
Arguments
| :: ToFiles sys concOpts | |
| => sys | The system. |
| -> concOpts | The concretization options. |
| -> WriteOptions | The file-writing options. |
| -> IO () | Files will be written to a local directory named after the abbreviation of the system. |
Concretize a system into a concrete set of files and write them to disk.
Note: Writes files to a subdirectory of the current working directory.
setSystemLocale :: IO () Source #
Deprecated: Use concretizeAndWrite instead of directly setting system locale before file-writing.
Internal: Set system locale encoding to UTF-8.
data WriteOptions Source #
Configuration options for writing a repository of software artifacts.
Constructors
| WO | |
Fields
| |
data DebugDataPolicy Source #
When should debugging data be written?
Constructors
| AlwaysWrite | Always. |
Fields
| |
| CheckEnvVar | Only write debugging data if the following environment variable ( |
Fields
| |
| NeverWrite | Never. |