-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to cabal repl --build-depends=tidal
by default?
#156
Comments
Interesting.
|
ok, now it's working. Nice and clean, and all the output would be printed on the console inside atom. |
I think cabal has the same situation as ghci - it will either be in the path, or in same folder as ghci. |
Do you know what's the minimum cabal version needed for this command? |
It looks like it's been there many years, but originally as The build-depends option isn't mentioned in the new-repl section until 2.4, but it might have worked before: https://cabal.readthedocs.io/en/2.4/nix-local-build.html#cabal-new-repl As it's still usable as A downside is that if someone has installed a particular version of tidal with v1-install, then this would install a newer version, afresh.. In the nearish future hopefully we'll have a binary distribution of tidal and this will become largely moot.. |
As per advice here: haskell/cabal-userguide#1 (comment)
This could work around the problems with the
cabal install tidal --lib
command.To run a repl we could do:
cabal repl --build-depends=tidal
It is a bit slower than running
ghci
and prints out some confusing things about fake packages but works.If tidal isn't installed then it will install it first, but only if
cabal update
has already been run. To build everything in advance we can just docabal install tidal
but then there is a heavy warning that doesn't apply to us.The text was updated successfully, but these errors were encountered: