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

Error parsing stack.yaml file #28

Closed
gilligan opened this issue Jul 1, 2017 · 3 comments
Closed

Error parsing stack.yaml file #28

gilligan opened this issue Jul 1, 2017 · 3 comments
Labels

Comments

@gilligan
Copy link

gilligan commented Jul 1, 2017

I installed stack2nix 0.1.3.0:

nix-env -f https://github.com/NixOS/nixpkgs/tarball/8de4530b4acfcda703cac98448120aa837043983 -iA haskellPackages.stack2nix

I wanted to try it on some random project: https://github.com/haskell-servant/example-servant-persistent

stack.yaml:

resolver: lts-6.2
packages:
  - '.'

This fails with the following output:

Ensuring cabal2nix version is >= 2.2.1 ...
Ensuring git version is >= 2 ...
Ensuring cabal version is >= 1 ...
stack2nix: Failed to parse ./stack.yaml
CallStack (from HasCallStack):
  error, called at src/Stack2nix.hs:158:24 in stack2nix-0.1.3.0-L6x2s4dmjRmKw75ThmpeHH:Stack2nix


Sorry if this might be something obvious. I really don't know much about stack and its config files at all.

@domenkozar
Copy link
Contributor

Needs a bit more basic tests :) Currently stack2nix assumes extra-deps section to be in stack file.

@domenkozar domenkozar added the bug label Jul 1, 2017
@domenkozar
Copy link
Contributor

Also a good reason to use stack as a library to parse the config according using their types.

@domenkozar
Copy link
Contributor

Fixed in #42, thanks for reporting!

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

Successfully merging a pull request may close this issue.

2 participants