hie-bios fails to compile where "stack repl" succeeds, even with hie.yaml: cradle: stack: #4492
Labels
build tool: stack
component: ghcide
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Summary
I am trying to get a minimal example of LiquidHaskell working with HLS, and I'm running into the following issue:
The
haskell-language-server-wrapper
command produces an inappropriate compilation error:The
stack repl
command, on the other hand, compiles successfully without producing the error (this is the correct behavior, as the code itself is correct).hie-bios produces the error despite the project containing a
hie.yaml
file with these contents:My understanding was that this was supposed to make hie-bios build "the same way" that Stack does. Why might hie-bios build differently than Stack, even when the hie.yaml file is present?
Steps to re-create
Platform: Arch Linux
Install the following via ghcup:
Example project:
git clone https://github.com/ucsd-progsys/lh-plugin-demo.git
Replace the contents of the
stack.yaml
file with the following:Create a top-level
hie.yaml
file with the following contents:Replace the contents of
src/Demo/Client.hs
with the following:At this point,
stack build
compiles with no errors.stack ghci
compiles with no errors.stack repl
compiles with no errors.haskell-language-server-wrapper
produces a compilation error:Why might hie-bios build differently than Stack, even when the hie.yaml file is present? Thank you in advance for your help!
Extra context
I was able to recreate this issue with ghcid.
The command
ghcid
fails to compile with the same error that hie-bios is producing.The command
ghcid "--command=stack ghci"
compiles with no errors, giving theAll good
message. This does not immediately help me resolve the issue with hie-bios, though.The text was updated successfully, but these errors were encountered: