Replies: 5 comments 2 replies
-
Absolutely. Nix is only a "nice to have", it is not required to use this project. If you are using it outside of Nix, however, you should remember to run the project via ghcid yourself (otherwise hot reload on code change wouldn't work, of course). The
Informing users how to use this template with Stack or even plain Cabal is a great idea. The problem with adding stack.yaml to the repo however is that it can soon become out of date with no maintainer to fix it (I don't use stack myself). We could perhaps add instructions to README, or even better - add a new page under https://ema.srid.ca/guide ? |
Beta Was this translation helpful? Give feedback.
-
Okay I will open a PR then later.
(Not sure if I am doing something wrong but I couldn't seem to get content hot reloading to work without restarting but I will test more on that.)
The problem is stack requires stack.yaml file to do anything (even to fail;) - IMO even a broken (slightly outdated) stack.yaml is still more useful than none (obviously a working one is ideal...). But I hear you - well it would not be hard to add stack to the CI even - but you could just leave it to users to update it as needed: it is fine to note in the readme that stack support is "best effort" or not officially supported/maintained/help-welcome (though that kind of contradicts "nix is nice to have" - I don't think I could build easily with cabal either: it needs a cabal.project file). Also not a bad idea to add the deps/packages to Stackage too. :-) |
Beta Was this translation helpful? Give feedback.
-
Here's one that worked yesterday, FWIW:
|
Beta Was this translation helpful? Give feedback.
-
(Obviously allow-newer:true isn't ideal, some work is needed on the deps to get rid of that. ) |
Beta Was this translation helpful? Give feedback.
-
@simonmichael I believe this stack.yaml is for https://github.com/srid/emanote-template (ema is the library that emanote uses) But yes, I do plan to release ema, pandoc-link-context and tagtree to Hackage. We should probably put the version constraints on the .cabal file too. Then a simple 'cabal install' should work - but only after snapframework/heist#129 is done. |
Beta Was this translation helpful? Give feedback.
-
I know nix is getting attention but not everyone (including me) uses it...
and in fact stack also works fine I think for running this project.
Would you accept a PR to add stack.yaml and an explanation for how to run with stack?
It should be pretty simple.
Beta Was this translation helpful? Give feedback.
All reactions