implicit-hie icon indicating copy to clipboard operation
implicit-hie copied to clipboard

Common stanzas are not understood

Open jchia opened this issue 5 years ago • 7 comments
trafficstars

What about using Cabal to do the parsing?

jchia avatar May 03 '20 15:05 jchia

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 avatar May 03 '20 16:05 Avi-D-coder

Can you post the cabal file that fails?

Avi-D-coder avatar May 03 '20 16:05 Avi-D-coder

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

jchia avatar May 04 '20 10:05 jchia

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

Avi-D-coder avatar May 04 '20 16:05 Avi-D-coder

+1

refaelsh avatar Oct 20 '22 18:10 refaelsh

Should be fixed by #48

fendor avatar Oct 21 '22 09:10 fendor

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

Avi-D-coder avatar Oct 21 '22 20:10 Avi-D-coder