/
ghc-options.cabal
74 lines (65 loc) · 2.74 KB
/
ghc-options.cabal
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
-- Initial ghc-options.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: ghc-options
version: 0.2.0.1
synopsis: Utilities for extracting GHC options needed to compile a given Haskell target.
description: 'ghcopts' is a library that makes it easy to determine what
GHC options are needed to compile a file. It was built
by extracting the relevant code from 'hdevtools' which
queries 'cabal' and 'stack' to determine the locations
of various package databases, in order to pass them to
GHC to process a target file. We have refactored this
code into a separate package so that it can be used by
other tools built on the GHC API.
homepage: https://github.com/ranjitjhala/ghc-options.git
license: MIT
license-file: LICENSE
author: Ranjit Jhala
maintainer: jhala@cs.ucsd.edu
-- copyright:
category: Language
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10
executable ghcopts
hs-source-dirs: src
ghc-options: -Wall
cpp-options: -DCABAL
main-is: Main.hs
build-depends: base >=4.8 && <4.9,
process,
filepath,
directory,
transformers,
Cabal >= 1.22,
bin-package-db,
unix,
ghc >= 7.10.2,
ghc-paths
other-modules: Language.Haskell.GhcOpts,
Language.Haskell.GhcOpts.Types,
Language.Haskell.GhcOpts.Stack,
Language.Haskell.GhcOpts.Cabal,
Language.Haskell.GhcOpts.Utils
hs-source-dirs: src
default-language: Haskell2010
cpp-options: -DENABLE_CABAL
library
exposed-modules: Language.Haskell.GhcOpts,
Language.Haskell.GhcOpts.Types
Language.Haskell.GhcOpts.Stack,
Language.Haskell.GhcOpts.Cabal,
Language.Haskell.GhcOpts.Utils
build-depends: base >=4.8 && <4.9,
process,
filepath,
directory,
transformers,
Cabal >= 1.22,
bin-package-db,
unix,
ghc >= 7.10.2,
ghc-paths
hs-source-dirs: src
default-language: Haskell2010
cpp-options: -DENABLE_CABAL