dhall-lang / dhall-to-cabal

Compile Dhall expressions to Cabal files
MIT License
100 stars 19 forks source link

Changes to allow stack build the project #106

Closed jneira closed 6 years ago

jneira commented 6 years ago

After changes to bump cabal spec version of dhall-to-cabal to 2.2 the project cant be built with stack. I've found 2 issues:

quasicomputational commented 6 years ago

I think the build-type thing is resolved if you upgrade your Stack, which only supports Cabal 2.2 from version 1.7.1. Really, Stack 1.6 ought not to be trying to read a 2.2-spec file at all if it doesn't understand it. On the other hand, the error message is poor and I suspect it'll also happen with prior versions of cabal-install, which also aren't so strict about rejecting cabal-version when it's too high, so it probably makes sense to work around. Worth having a comment explaining the situation, though, so that no-one tries to remove the 'redundant' build-type.

jneira commented 6 years ago

Thanks for the clarification, i suppose the comment should be only in dhall file, right?

ocharles commented 6 years ago

@jneira out of interest, are you on stack < 1.7.1?

jneira commented 6 years ago

@ocharles yeah, 1.6.5 in one of my computers, i think i have 1.7.* in the other one

jneira commented 6 years ago

@ocharles does it need me to do some action?

ocharles commented 6 years ago

@jneira No action, I've just had a busy week. Catching up now.

jneira commented 6 years ago

Just lts-12 was released so i am gonna update the stack.yaml to use it