evincarofautumn / kitten

A statically typed concatenative systems programming language.
http://kittenlang.org/
Other
1.09k stars 39 forks source link

Build with stack #154

Closed joprice closed 8 years ago

joprice commented 8 years ago

I'd like to play around with kitten, but I have trouble running anything with cabal. Stack has liberated the haskell community from cabal hell. It would be nice to setup a stack.yml for the project.

evincarofautumn commented 8 years ago

Sure, will do. I’ve been meaning to do this anyway.

In the meantime, the Makefile sets up a Cabal sandbox appropriately, so everything should Just Work as long as you’re using cabal-install ≥1.22. If you encounter https://github.com/haskell/cabal/issues/2320, you may need to delete dist and .cabal-sandbox if they were created with an older version of Cabal.

evincarofautumn commented 8 years ago

Added a basic stack.yaml in 9c64fca9f72612e4d1c95df853c18197953546d0.

I would need to update the Makefile if Stack is to be the default build tool, because make also runs integration tests, but I’ll hold off for now because I’ll probably convert those to unit tests in the new compiler and nix make.

joprice commented 8 years ago

I was able to build via stack. Thanks!