Skip to main content

All Questions

0 votes
1 answer
39 views

"Could not find module ‘GHCi.GhcApiCompat’." which installing `haskell-dap ghci-dap`

Below are my ghcup config - I've I've created haskell project using stack with command stack new stack-hls-dbg-demo. I then updated snapshot.url as below so that it uses ghc-9.10.1- snapshot: url: ...
user51's user avatar
  • 10.3k
1 vote
1 answer
687 views

Error occured while (re-)installing GHC and setting up the VSCode Haskell Plugin

I was trying to setup the Haskell Plugin for VSCode and I had two seperate problems while trying. First: The original error I faced while setting up the Haskell Plugin in VSCode was: HLS does not ...
Hallo5000's user avatar
2 votes
1 answer
183 views

How do I get an error and warning count from GHC/Cabal/Stack?

If I run dotnet build in PowerShell to build a .NET project, at the end of the output, I see a message that tells me how many warnings and errors the compiler generated while building my project. I ...
Peter Bergman's user avatar
1 vote
0 answers
159 views

Installing Haskell Stack builds and artifacts or GHC to a different drive than C:

Is there any good methods to install Haskell on a different drive than C: , such that when I run stack buildand stack test etc., it will not install a large number of files in C:\Users\myuser\AppData\...
Piskator's user avatar
  • 647
1 vote
0 answers
41 views

Cross-Compile Yesod app for aarch64 system on x86_64

as can be inferred from the title my goal is to deploy my Yesod app to an aarch64 Ubuntu server (using Keter). For this I would like to do compilation on my x86_64 debian machine, where I also develop ...
Shini's user avatar
  • 13
2 votes
0 answers
146 views

How to suppress warnings from external packages?

My stack build shows warning from external packages, like: happy > /tmp/stack-d6caed253e9f21bf/happy-1.20.0/src/ProduceGLRCode.lhs:224:12: warning: [-Wincomplete-uni-patterns] ...
Abhijit Sarkar's user avatar
5 votes
1 answer
2k views

ghc-9.2.5 is not supported by haskell plugin in vscode but I can't use other ghc versions

I'm new to Haskell and I am trying to setup haskell plugin in vscode using official haskell plugin but I came with up some problems with setting up code hinting and syntax recognition of hls plugin. I ...
Nayami's user avatar
  • 51
4 votes
1 answer
827 views

XMonad crashing: how to do proper build with Stack and custom build script?

OS: linux gentoo 6.0.9 I am attempting to build a custom version of XMonad using Stack and a build script I wrote, which is closely based on this one here. build.sh: #!/bin/sh SRC_DIR=$HOME/.config/...
Oh Fiveight's user avatar
0 votes
0 answers
136 views

How to fix InvalidAbsFile error from stack build

I seem to be getting a peculiar problem which is hard to even search up online. I'm using stack and have already created a project from my professor but when I try to run it with stack build or stack ...
Raskolnikov's user avatar
1 vote
1 answer
130 views

What happens when a deprecated optimization flag is passed to GHC?

In my stack configuration i have a list of optimization flags that i pass to GHC normally, but i tried the latest version of GHC which deprecated one of them. During compilation GHC gave me a warning ...
Anon's user avatar
  • 385
0 votes
0 answers
1k views

Using VSCode with Haskell, ghcup and stack - hls crashes with newer versions of ghc

I am using VSCode with the Haskell extension. I have ghcup installed with the following installed: Stack 2.7.5 HLS 1.7.0.0 Cabal 3.6.2.0 GHC 9.0.2 (set) GHC 8.10.7 If I have a stack.yaml with lts-18....
b1g3ar5's user avatar
  • 75
3 votes
1 answer
2k views

How can i update the version of my GHC for my stack project? ERROR: ghcide compiled by GHC 8.10 failed to load packages:haskell-language-server-8.10.7

I have created a stack haskell project a few months ago and finished it then. I wanted to add and fix a few issues it has, but when i tried opening the .hs file on vs code (visual studio code) i got ...
Icen's user avatar
  • 133
1 vote
0 answers
235 views

Sanity check failed when installing Haskell Stack on Windows

I've been trying to install Haskell Stack on Windows, but when I try this command: >stack setup --resolver lts-18.26 the following error occurs: The GHC located at C:\Users\Atanasia\AppData\Local\...
Atha's user avatar
  • 11
4 votes
1 answer
467 views

Cannot profile a build with stack LTS 19.2 (GHC 9.0.2)

I am trying to build a profilable executable with stack build --profile. stack build, stack test, and stack ghci all work correctly. (Full repo for reference) I get many errors like the following: ...
Xavier Shay's user avatar
  • 4,127
1 vote
1 answer
85 views

Why can't GHC find module `Language.Java.Inline.Plugin'

I am trying to stack build using I am importing inline-java in the extra-deps in stack.yaml, like this: extra-deps: - inline-java-0.8.4@sha256:...
James Strieter's user avatar

15 30 50 per page
1
2 3 4 5
8