Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- parseOption :: FilePath -> IO Option
- type Natural = Int
- defaultOption :: Option
- data Option = Option {
- opt_port :: Natural
- opt_host :: String
- opt_debug_mode :: Bool
- opt_user :: String
- opt_group :: String
- opt_pid_file :: FilePath
- opt_report_file :: FilePath
- opt_logging :: Bool
- opt_log_file :: FilePath
- opt_log_file_size :: Natural
- opt_log_backup_number :: Natural
- opt_index_file :: FilePath
- opt_index_cgi :: FilePath
- opt_status_file_dir :: FilePath
- opt_connection_timeout :: Natural
- opt_proxy_timeout :: Natural
- opt_fd_cache_duration :: Natural
- opt_service :: Natural
- opt_tls_port :: Natural
- opt_tls_cert_file :: FilePath
- opt_tls_chain_files :: FilePath
- opt_tls_key_file :: FilePath
- opt_quic_port :: Natural
- opt_quic_addr :: [String]
- opt_quic_debug_dir :: Maybe FilePath
- opt_quic_qlog_dir :: Maybe FilePath
- opt_server_name :: String
- opt_routing_file :: Maybe String
Parsing a configuration file.
Creating Option
.
defaultOption :: Option Source #
Getting a default Option
.