1,849 questions
0
votes
1
answer
129
views
HLS running from terminal and getting cabal error on fresh new project
I'm using HLS from terminal with the command haskell-language-server-9.12.2. I'm getting the following error:
Step 4/4: Type checking the files
2025-12-15T23:04:57.109846Z | Info | Cradle path: app/...
2
votes
2
answers
107
views
Cabal not recognizing Include/Header File Directories for FFI project
So I have a project in Haskell, and I was using make to build it, but then I switched the project over to use Cabal as someone recommended to me on another Stack Overflow post. It is an FFI project, ...
1
vote
0
answers
54
views
Access violation when running program with HDBC-sqlite3 in GHCi on Windows
I have a Haskell environment set up on Windows. The following program crashes when I run it on GHCi through cabal repl:
module Main where
import Database.HDBC
import Database.HDBC.Sqlite3
main :: IO ...
0
votes
0
answers
74
views
How to package resource files using cabal2nix?
I want to package a Cabal project for NixOS. In the package directory, I put the default.nix file with the following content:
{ pkgs ? import <nixpkgs> { }, ... }:
pkgs.haskellPackages....
0
votes
0
answers
79
views
error: [GHC-83865] Couldn't match type ‘T.Text’ with ‘Data.Aeson.Key.Key’
Below is a cabal project config:
library
import: warnings
exposed-modules: MyLib
, Logger
, Domain.Auth
, Domain....
0
votes
1
answer
63
views
Couldn't add digestive-functors library to cabal project
Below is a cabal project:
library
import: warnings
exposed-modules: MyLib
, Logger
, Domain.Auth
, Domain.Validation
...
0
votes
1
answer
68
views
Haskell error : /usr/bin/ld.bfd: in function undefined reference to in MyLib
Below is the cabal file -
library
import: warnings
exposed-modules: MyLib
, Logger
, Domain.Auth
, Domain.Validation
...
1
vote
1
answer
202
views
Error: [Cabal-7125] Failed to build postgresql-libpq-configure-0.11
I've haskell cabal project with below config
library
import: warnings
exposed-modules: MyLib
, Logger
, Domain.Auth
, ...
0
votes
0
answers
62
views
cabal installs fails on ubuntu runner in GitHub actions
I am trying to run a GitHub CI workflow where I am using the ubuntu-latest runner with ghc 9.6.6 and cabal 3.12.1.0 .
I am not able to share the CI yaml file here because it is work related, but the ...
0
votes
1
answer
96
views
Removing ambiguous packages in Haskell
I originally had Data.Matrix installed via cabal install --lib matrix. For some testing, I needed to reinstall the library with profiling, which I did via cabal install --lib matrix --enable-profiling....
1
vote
2
answers
72
views
Literate Haskell specifying explicit source paths for Cabal
I have a folder full of literate Haskell notes which are sequentially organized like this:
\lhs_notes
'1 - Intro.lhs'
'2 - Seq.lhs'
...
And each of these files define a module Intro, Seq, and ...
4
votes
0
answers
90
views
can I make a shared library available to my cabal application without installing it
I am developing a Haskell application that has three parts: my executable, a third-party executable (not controlled by cabal), and a shared library that will be loaded by the third-party executable. I'...
2
votes
1
answer
104
views
Instance of fake IO typeclass is found in production code but not in testing
I have many IO-based actions, one of the simplest being the following:
-- Loop.hs
module Loop where
import System.Console.ANSI (setCursorPosition)
type Pos = (Int, Int)
setCursorPosition' :: Pos -> ...
0
votes
1
answer
52
views
`cabal install` failed with complaining a non-required file doesn't exist. How to get more detailed information?
I substantially changed a project and removed unused files. Now I cannot install with
"Error: [Cabal-4765] xx.hs doesn't exist".
The file xx.hs does not exist in the project and is not used ...
1
vote
1
answer
151
views
Cabal build with local dependency
I have two local libraries (and by local I mean located in the local filesystem, pardon the alliteration), called bins and eeep, both building fine. Now the library eeep needs functionality from the ...