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

spelling mistake source_dirs is not flagged as error and produces incorrect cabal file #26

Open
andrewufrank opened this issue Mar 16, 2021 · 0 comments

Comments

@andrewufrank
Copy link

I have a stack.yaml with two executable and the cabal file does not include the hs-course-dirs for the second executable. The problem was that I misspelled source_dirs (underbar in stead of dash).
It would be nice if hpack would flag such hard to track errors...

Would it be possible, to include common parts for all executables in front of the list of executables, like so:

executables:
    source-dirs:         app
    ghc-options:
    - -threaded
    - -rtsopts
    - -with-rtsopts=-N
    - -Wno-deprecations
  primo-exe:
    main:                Main.hs
    dependencies:
    - primo
  fixmd:
    main:               fixmd.hs
(-- This file has been generated from package.yaml by hpack version 0.33.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: 96ef3f0dac1ff9a02d9d4c24823b8f5dff5585876922f4ad4a66da5895193196)
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

1 participant