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

Issues with cabal.project pointing to current directory #32

Open
georgefst opened this issue Jan 3, 2021 · 0 comments
Open

Issues with cabal.project pointing to current directory #32

georgefst opened this issue Jan 3, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@georgefst
Copy link

My cabal.project has:

packages:
    ./.
    ../reanimate-svg

implict-hie produces:

cradle:
  cabal:
    - path: "../reanimate-svg/src"
      component: "lib:reanimate-svg"

    - path: "../reanimate-svg/test"
      component: "reanimate-svg:test:w3c-spec"

When I'd expect:

cradle:
  cabal:
    - path: "./app/Main.hs"
      component: "svgone:exe:svgone"

    - path: "./src"
      component: "lib:svgone"

    - path: "../reanimate-svg/src"
      component: "lib:reanimate-svg"

    - path: "../reanimate-svg/test"
      component: "reanimate-svg:test:w3c-spec"

Which is actually what I get if I change ./. to .. But the latter isn't actually valid syntax - cabal gives:

cabal: Error parsing project file
/Users/gthomas/personal/svgone/cabal.project:1:
Parse of field 'packages' failed.
@jneira jneira added the bug Something isn't working label Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants