pbrisbin/codeclimate-hlint

View on GitHub
engine.cabal

Summary

Maintainability
Test Coverage
name:                   engine
version:                0.0.0
author:                 Code Climate <hello@codeclimate.com>
maintainer:             Code Climate <hello@codeclimate.com>
license:                MIT
license-file:           LICENSE
cabal-version:          >= 1.10
build-type:             Simple

Flag static
  Description:   Compile statically
  Default:       False

library
  default-language:     Haskell2010
  hs-source-dirs:       src
  ghc-options:          -Wall -Werror
  exposed-modules:      CC.Config
                      , CC.Engine
                      , CC.Result
  build-depends:        base
                      , Glob
                      , aeson
                      , bytestring
                      , containers
                      , directory
                      , haskell-src-exts
                      , hlint
                      , text

executable engine
  default-language:     Haskell2010
  main-is:              main.hs

  if flag(static)
    ghc-options: -Wall -Werror -static -optl-static -optl-pthread
  else
    ghc-options: -Wall -Werror

  build-depends:        base
                      , engine
                      , aeson
                      , bytestring

Test-Suite spec
  Type:                 exitcode-stdio-1.0
  Default-Language:     Haskell2010
  Hs-Source-Dirs:       test
  Ghc-Options:          -Wall
  Main-Is:              Spec.hs
  Build-Depends:        base
                      , hspec
                      , directory
                      , engine
                      , filepath
                      , temporary
                      , text

source-repository head
  type:                 git
  location:             https://github.com/codeclimate/codeclimate-hlint