You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm glad you're impressed, thanks for the feedback!
(1 / 2) Here's a stack plugin that adds something like this: https://github.com/yamadapc/stack-run . I wouldn't be opposed to adding something similar to stack itself. Though, I'd probably store the default run target in the stack.yaml
(3) That's because this is a pretty straightforward alias for stack exec runghc. When runghc is invoked without input files, it expects a source file on the input. So if you type main = putStrLn "hi", and then press Ctrl+d, it will run that code. It's stuck waiting for input.
(4) While this is a good idea, automatically modifying cabal files is outside the scope of stack. Perhaps if someone writes a good cabal file refactorer as a library, we can consider adding support to stack. It'd be cool to also integrate this with adding to the extra-deps in stack.yaml, something which is covered by #115. So if you do stack require JuicyPixels-3.2.6.4, it would modify both the cabal file and stack.
Another thing to note here is that stack projects can contain multiple packages, and packages have multiple components, each with their own build-depends. So, you'd need to specify which components to add the dependencies to. Maybe something like stack add-dep JuicyPixels my-pkg:lib (the first positional arg is the dep to add, the rest is the components to add it to)
Hi i'm a new user of stack. So far i've been really impressed, there are some things though that i'm missing
stack run
maybe instead ofstack exec project
stack runghc
doesn't do anything .. it's just "stuck" (process running without any output)stack require JuicyPixels
thank you
The text was updated successfully, but these errors were encountered: