packages feed

ghc-options-0.1.0.0: ghc-options.cabal

-- Initial ghc-options.cabal generated by cabal init.  For further
-- documentation, see http://haskell.org/cabal/users-guide/

name:                ghc-options
version:             0.1.0.0
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

  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

  build-depends:       base >=4.8 && <4.9,
                       process,
                       filepath,
                       directory,
                       transformers,
                       Cabal >= 1.22,
                       bin-package-db,
                       unix

  hs-source-dirs:      src
  default-language:    Haskell2010
  cpp-options:       -DENABLE_CABAL