/var/lib/ghc/package.conf.d/options-0.1.1.conf is in libghc-options-dev 0.1.1-3build1.
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 82 | name: options
version: 0.1.1
id: options-0.1.1-734ce5e7045224516e9a480e2d08cf68
license: MIT
copyright:
maintainer: John Millikin <jmillikin@gmail.com>
stability: experimental
homepage: https://john-millikin.com/software/haskell-options/
package-url:
synopsis: Parsing command-line options
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@:
.
@
{-\# LANGUAGE TemplateHaskell \#-}
.
import Options
.
defineOptions \"MainOptions\" $ do
  stringOption \"optMessage\" \"message\" \"Hello world!\"
  \"A message to show the user.\"
  boolOption \"optQuiet\" \"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 A message to show the user.
> --quiet Whether to be quiet.
category: Console
author: John Millikin <jmillikin@gmail.com>
exposed: True
exposed-modules: Options
hidden-modules: Options.Help Options.OptionTypes Options.Tokenize
Options.Types Options.Util
trusted: False
import-dirs: /usr/lib/haskell-packages/ghc/lib/options-0.1.1/ghc-7.6.3
library-dirs: /usr/lib/haskell-packages/ghc/lib/options-0.1.1/ghc-7.6.3
hs-libraries: HSoptions-0.1.1
extra-libraries:
extra-ghci-libraries:
include-dirs:
includes:
depends: base-4.6.0.1-8aa5d403c45ea59dcd2c39f123e27d57
bytestring-0.10.0.2-4f93248f75667c2c3321a7a6761b576f
containers-0.5.0.0-ab1dae9a94cd3cc84e7b2805636ebfa2
monads-tf-0.1.0.1-7425e9a052c21cc7747906e9ce77233b
system-filepath-0.4.7-c7b27b28fefe76644dbb98b4689e1735
template-haskell-2.8.0.0-a3012803fde1dc362e555b35a1a78e6d
text-0.11.3.1-e38859e86485c167fa7c9441789e7607
transformers-0.3.0.0-ff2bb6ac67241ebb987351a3db564af0
hugs-options:
cc-options:
ld-options:
framework-dirs:
frameworks:
haddock-interfaces: /usr/lib/ghc-doc/haddock/options-0.1.1/options.haddock
haddock-html: /usr/share/doc/libghc-options-doc/html/
|