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
The error was caused by an older version of stack which requested to download from an outdated Github URL ("raw.githubusercontent.com/fpco/lts-haskell/master//lts-19.11.yaml").
Upon executing ..$ sudo stack upgrade then reattempting to install (..$ bash /tmp/haskell-vim-now.sh) the installation proceeded with success.
Recommend adding something like the following lines in the "setup_haskell.hs" file just before msg "Setting up GHC if needed...:
msg " Upgrading stack if needed"
Turtle.procStrict "stack" ["upgrade"] $ pure (Turtle.unsafeTextToLine "y")
The text was updated successfully, but these errors were encountered:
Recommend adding something like the following lines in the
"setup_haskell.hs" file just before `msg "Setting up GHC if
needed...`:
```
msg " Upgrading stack if needed"
Turtle.procStrict "stack" ["upgrade"] $ pure (Turtle.unsafeTextToLine "y")
```
Are you able to revert your system to reproduce the error, and then test
whether this addition fixes it? If that works, then I'd accept a pull
request.
Also, might it be an unwelcome surprise to someone that their Stack gets
upgraded without their confirmation?
Thanks @begriffs , I will get back to you after I have a chance to test.
And you make a fair point about automatically upgrading Stack: I know several Haskell packages are quite sensitive to which version of GHC is being used (is this the issue which causes "Cabal Hell"?) and upgrading my Stack did change to GHC version which Stack tried to install.
As such, would you support an interactive installer confirmation (ie. not passing "y" automatically but asking the user)?
When first installing Haskell-Vim-Now I encountered the following error:
The error was caused by an older version of stack which requested to download from an outdated Github URL ("raw.githubusercontent.com/fpco/lts-haskell/master//lts-19.11.yaml").
Upon executing
..$ sudo stack upgrade
then reattempting to install (..$ bash /tmp/haskell-vim-now.sh
) the installation proceeded with success.Recommend adding something like the following lines in the "setup_haskell.hs" file just before
msg "Setting up GHC if needed...
:The text was updated successfully, but these errors were encountered: