Skip to main content
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
0 answers
56 views

Couldn't find a working/matching GHC installation. Consider installing ghc-9.10.1 via ghcup or build HLS from source

I've ghcup installed in my machine. Below are my ghcup installation details - I verified the same in command line as well. Then I created a new haskell project using stack 3.3.1 with the command ...
user51's user avatar
  • 10.3k
1 vote
0 answers
36 views

Haskell static compiled so file where haskell runtime shared library that can be accessed through ffi [closed]

I want to write a haskell program that get exposed through FFI, uses fpic and system-ffi and create a single so file so that the haskell runtime and deps are all packaged into a single object, when ...
mithran's user avatar
  • 11
4 votes
1 answer
88 views

How to Free Resources Allocated During Debugging in GHC or Stack Debugger?

I'm debugging a Haskell program using GHC's debugger (ghci) or via stack ghci, specifically with the Haskell GHCi Debug Adapter (Phoityne extension) in Visual Studio Code, and I'm encountering a major ...
Daniele Caliandro's user avatar
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
34 views

How can I suppress the error summary at the bottom of `stack test`

I like to have stack test --file-watch running in a terminal below my editor so when I make a change and save, it reruns my tests and gives feedback. However, in the output below, everything after the ...
Quinn Wilson's user avatar
  • 8,233
0 votes
1 answer
50 views

VS Code shows dummy errors despite successful builds; restarting VS Code temporarily resolves the issue—suggestions?

I’m encountering some wrong errors in Haskell while coding in VS Code, such as "not in scope," "not imported-exported" or "package not found." To fix this, I have to quit ...
Danial Hamedi's user avatar
0 votes
1 answer
53 views

Stack tried to find libgmp then failed, even with no dependencies at all

I use nix-darwin and have enabled nix in ~/.stack/config.yaml. Earlier today I did a sudo nix-collect-garbage -d then many things begin to break. Minimum reproducible example: stack new mwe cd mwe ...
Futarimiti's user avatar
0 votes
1 answer
33 views

Link error when use `stack build` on wsl CentOS 8

I encountered the following problem when running stack build [3 of 3] Linking .stack-work/dist/x86_64-linux/ghc-9.6.6/build/cap/cap /usr/bin/ld.gold: error: cannot find -ltinfo /usr/bin/ld.gold: error:...
Tony Liao's user avatar
0 votes
0 answers
34 views

How to use Niv to build a Stack project?

I'm working on a Haskell project using NixOS and Stack as the dependency manager. However, I'm having trouble specifying GHC version 8.8.4. To solve the version problem, I am trying to use Niv with ...
Fabian Matias Vega Alcota's user avatar
1 vote
1 answer
42 views

hint runStmt no output when redirected

Following this link and trying to stack run this module: module Main where import Language.Haskell.Interpreter main :: IO () main = do _ <- runInterpreter $ setImports ["Prelude"]...
sjb's user avatar
  • 55
0 votes
0 answers
80 views

Haskell program not finding student in database despite correct ID

I'm encountering an issue with my Haskell program where it's unable to find a student in the database despite providing the correct student ID. Details: Objective: My program is designed to search for ...
Clutchjam007's user avatar
0 votes
0 answers
84 views

Haskell, Stack, importing module shows error "Module not found" [duplicate]

If i write import in .hs file, it pops error saying no module found for "Lib" and "import Numeric.LinearAlgebra ( (><), linearSolve )". Also i got error saying ambiguous type....
user23791247's user avatar
1 vote
1 answer
101 views

Stack error when running benchmarks (tasty-bench)

I try to include some benchmarks in my Haskell package and running stack bench generates an error: Benchmark benchmarks: RUNNING... All Fibonacci numbers fifth: OK (4.28s) 247 ns ± ...
Stéphane Laurent's user avatar
0 votes
1 answer
90 views

How to specify c/c++ compiler on stack install command

I'm learning Haskell and I'm setting up my system for development. I'm on MacOS and trying to install hoogle locally with stack install hoogle fails because the compilation of some libraries fails ...
dec's user avatar
  • 25

15 30 50 per page
1
2 3 4 5
87