/var/lib/ghc/package.conf.d/options-1.2.1.1.conf is in libghc-options-dev 1.2.1.1-6+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | name: options
version: 1.2.1.1
id: options-1.2.1.1-DvKmt92WADIDSbuS7WrmU6
key: options-1.2.1.1-DvKmt92WADIDSbuS7WrmU6
license: MIT
maintainer: John Millikin <john@john-millikin.com>
stability: stable
homepage: https://john-millikin.com/software/haskell-options/
synopsis: A powerful and easy-to-use command-line option parser.
description:
The @options@ package lets library and application developers easily work
with command-line options.
.
The following example is a full program that can accept two options,
@--message@ and @--quiet@:
.
@
import Control.Applicative
import Options
.
data MainOptions = MainOptions
  { optMessage :: String
  , optQuiet :: Bool
  }
.
instance 'Options' MainOptions where
  defineOptions = pure MainOptions
  \<*\> simpleOption \"message\" \"Hello world!\"
  \"A message to show the user.\"
  \<*\> simpleOption \"quiet\" False
  \"Whether to be quiet.\"
.
main :: IO ()
main = runCommand $ \\opts args -> do
  if optQuiet opts
  then return ()
  else putStrLn (optMessage opts)
@
.
>$ ./hello
>Hello world!
>$ ./hello --message='ciao mondo'
>ciao mondo
>$ ./hello --quiet
>$
.
In addition, this library will automatically create documentation options
such as @--help@ and @--help-all@:
.
>$ ./hello --help
>Help Options:
> -h, --help
> Show option summary.
> --help-all
> Show all help options.
>
>Application Options:
> --message :: text
> A message to show the user.
> default: "Hello world!"
> --quiet :: bool
> Whether to be quiet.
> default: false
category: Console
author: John Millikin <john@john-millikin.com>
exposed: True
exposed-modules:
Options
hidden-modules: Options.Help Options.Tokenize Options.Types
Options.Util
abi: a7520cf019f466410546f20aaf69c448
trusted: False
import-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.1/options-1.2.1.1-DvKmt92WADIDSbuS7WrmU6
library-dirs: /usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-8.0.1/options-1.2.1.1-DvKmt92WADIDSbuS7WrmU6
data-dir: /usr/share/options
hs-libraries: HSoptions-1.2.1.1-DvKmt92WADIDSbuS7WrmU6
depends:
base-4.9.0.0 containers-0.5.7.1
monads-tf-0.1.0.3-HVD88uwypLB1Pu4HQI1mbn transformers-0.5.2.0
haddock-interfaces: /usr/lib/ghc-doc/haddock/options-1.2.1.1/options.haddock
haddock-html: /usr/share/doc/libghc-options-doc/html/
|