Is there a way to use the interactive `cabal init` from the stack

Say I have a folder with some .hsfiles and I want to wrap it in a project

If I have cabal installand stack, it doesn't really matter:

  • use cabal init(interactive selection)
  • keep going stack init

but when I just go easy - just set the stackroute, I don’t have cabal installaccess - onlystack

Now it stack initdoes not work without a file .cabal(or .package), but for stack newI do not know a template that does not install additional files / folders.

Probably I am missing something obvious, and there is a parameter stack/ command for this

If not : What is the right way to handle this? Install cabal-install?

+6
source share

Source: https://habr.com/ru/post/1014003/


All Articles