| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Dhall.Main
Description
This module contains the top-level entrypoint and options parsing for the
dhall executable
Synopsis
- data Options = Options {
- mode :: Mode
- explain :: Bool
- plain :: Bool
- chosenCharacterSet :: Maybe CharacterSet
- censor :: Censor
- data Mode
- = Default {
- file :: Input
- output :: Output
- annotate :: Bool
- alpha :: Bool
- semanticCacheMode :: SemanticCacheMode
- version :: Bool
- | Version
- | Resolve {
- file :: Input
- resolveMode :: Maybe ResolveMode
- semanticCacheMode :: SemanticCacheMode
- | Type {
- file :: Input
- quiet :: Bool
- semanticCacheMode :: SemanticCacheMode
- | Normalize { }
- | Repl
- | Format {
- deprecatedInPlace :: Bool
- transitivity :: Transitivity
- outputMode :: OutputMode
- inputs :: NonEmpty Input
- | Freeze {
- deprecatedInPlace :: Bool
- transitivity :: Transitivity
- all_ :: Bool
- cache :: Bool
- outputMode :: OutputMode
- inputs :: NonEmpty Input
- | Hash { }
- | Diff { }
- | Lint {
- deprecatedInPlace :: Bool
- transitivity :: Transitivity
- outputMode :: OutputMode
- inputs :: NonEmpty Input
- | Tags { }
- | Encode { }
- | Decode { }
- | Text { }
- | DirectoryTree {
- allowSeparators :: Bool
- file :: Input
- path :: FilePath
- | Schemas {
- file :: Input
- outputMode :: OutputMode
- schemas :: Text
- | SyntaxTree { }
- | Package {
- packageOptions :: Endo Options
- packageFiles :: NonEmpty FilePath
- = Default {
- data ResolveMode
- parseOptions :: Parser Options
- parserInfoOptions :: ParserInfo Options
- command :: Options -> IO ()
- main :: IO ()
Options
Top-level program options
Constructors
| Options | |
Fields
| |
The subcommands for the dhall executable
Constructors
| Default | |
Fields
| |
| Version | |
| Resolve | |
Fields
| |
| Type | |
Fields
| |
| Normalize | |
| Repl | |
| Format | |
Fields
| |
| Freeze | |
Fields
| |
| Hash | |
| Diff | |
| Lint | |
Fields
| |
| Tags | |
| Encode | |
| Decode | |
| Text | |
| DirectoryTree | |
Fields
| |
| Schemas | |
Fields
| |
| SyntaxTree | |
| Package | |
Fields
| |
data ResolveMode Source #
This specifies how to resolve transitive dependencies
Constructors
| Dot | Generate a DOT file for |
| ListTransitiveDependencies | List all transitive dependencies as text, one per line |
| ListImmediateDependencies | List immediate dependencies as text, one per line |
parseOptions :: Parser Options Source #
Parser for the Options type
parserInfoOptions :: ParserInfo Options Source #
ParserInfo for the Options type