Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- data Environment = Env {
- command :: String
- pwd :: String
- home :: String
- history :: String
- protocol :: String
- certStore :: String
- insecure :: Bool
- scidbAuth :: Bool
- digestAuth :: Bool
- digestHeaders :: RequestHeaders
- defFetch :: Maybe Bool
- defFormat :: String
- defNumber :: String
- defReadingLines :: Maybe Bool
- defPrefix :: String
- host :: String
- port :: Maybe String
- defPort :: String
- secPort :: String
- username :: String
- password :: String
- operands :: [String]
- file :: String
- help :: Bool
- license :: Bool
- manual :: Bool
- version :: Bool
- synopsis :: Bool
- verbose :: Verbosity
- sciDbVersion :: String
- versionSciDb :: Bool
- defaultEnv :: Environment
- maybePort :: Environment -> String
- data Verbosity
Documentation
data Environment Source #
The Environment
contains the command name, operands, defaults, and the
result of every option amongst other entries. It is set by main
and
otherwise to be used as a read-only Environment
.
Env | |
|
Instances
Show Environment Source # | |
Defined in Environment showsPrec :: Int -> Environment -> ShowS # show :: Environment -> String # showList :: [Environment] -> ShowS # |
defaultEnv :: Environment Source #
The defualt values, otherwise updated from the flags supplied by the
command line options. The default program name is hquery
.
maybePort :: Environment -> String Source #
Given an Environment
, return a port or a default port.
Verbose0 | Verbosity level 0, no information to stderr |
VerboseDef | Default verbosity, only relevant HTTP exceptions to stderr |
Verbose1 | Verbosity level 1, additional HTTP exceptions and trace information to stderr |
Verbose2 | Verbosity level 2, additional URL information to stderr |