Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghc-options don't end up in test-suite sections #2

Closed
soenkehahn opened this issue Apr 6, 2015 · 2 comments
Closed

ghc-options don't end up in test-suite sections #2

soenkehahn opened this issue Apr 6, 2015 · 2 comments

Comments

@soenkehahn
Copy link
Collaborator

From a package.yaml file like this:

ghc-options: -Wall -fno-warn-name-shadowing

dependencies:
  - base == 4.*
  - generics-sop
  - safe

library: {}

tests:
  spec:
    main: "Spec.hs"
    ghc-options: "-threaded -O0 -pgmL markdown-unlit"
    source-dirs:
      - test
      - examples

    dependencies:
      - getopt-generics
      - hspec
      - hspec-expectations
      - silently

I would expect the test-suite section of the generated cabal file to contain a ghc-options field with the value -Wall -fno-warn-name-shadowing -threaded -O0 -pgmL markdown-unlit but it has none.

@sol
Copy link
Owner

sol commented Apr 6, 2015

@soenkehahn I can't reproduce. Given the package.yaml above I get the following cabal file:

-- This file has been generated from package.yaml by Cabalize.
name: foo
version: 0.0.0
build-type: Simple
cabal-version: >= 1.10

library
  hs-source-dirs: src
  exposed-modules:

  other-modules:

  build-depends:
      base == 4.*
    , generics-sop
    , safe
  ghc-options: -Wall -fno-warn-name-shadowing
  default-language: Haskell2010

test-suite spec
  type: exitcode-stdio-1.0
  hs-source-dirs: test, examples
  main-is: Spec.hs
  build-depends:
      base == 4.*
    , generics-sop
    , getopt-generics
    , hspec
    , hspec-expectations
    , safe
    , silently
  ghc-options: -Wall -fno-warn-name-shadowing -threaded -O0 -pgmL markdown-unlit
  default-language: Haskell2010

@soenkehahn
Copy link
Collaborator Author

Sorry, I think I was diffing my files incorrectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants