Skip to content

Common stanzas are not understood #1

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

Open
jchia opened this issue May 3, 2020 · 7 comments
Open

Common stanzas are not understood #1

jchia opened this issue May 3, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@jchia
Copy link

jchia commented May 3, 2020

What about using Cabal to do the parsing?

@Avi-D-coder
Copy link
Owner

We can't depend on cabal because it's a very large dependency and hie-bios can't depend on cabal.

There are a few moreknown bugs having to due with generating cabal hie.yamls, try again tomorrow if you're having issues.

Cabal-fmt implemented a full cabal parser if ours gets to complex I look in to using theirs

@Avi-D-coder
Copy link
Owner

Can you post the cabal file that fails?

@jchia
Copy link
Author

jchia commented May 4, 2020

Nothing complicated or surprising. The hs-source-dirs is not picked up from the common stanza.

cabal-version: 2.2

name:           test
version:        0.1.0.0
description:    test
category:       test
build-type:     Simple

common common
  default-language: Haskell2010
  hs-source-dirs: app

executable test
  import: common
  main-is: test.hs
  build-depends:
      base

@Avi-D-coder
Copy link
Owner

Avi-D-coder commented May 4, 2020

Thanks. This is not currently a priority, but I will get to it eventually

@refaelsh
Copy link

+1

@fendor
Copy link
Collaborator

fendor commented Oct 21, 2022

Should be fixed by #48

@Avi-D-coder
Copy link
Owner

@fendor I don't think it's fixed.
I tested it locally, and it did not work.

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

No branches or pull requests

4 participants