My program uses the GHC API in IO, doing some computation inside a GhcMonad and forcing the result before returning it; something like this: At the ...
I have created a replacement Prelude for use in teaching beginning Haskell students, called FirstPrelude. One of the aims is to expunge type classes f ...
According to +RTS -p time inherited, 90% of my execution time is spent running a Generic based instance MyClass MyType definitions, for a single class ...
Trying to update ghcup with ghc (ghcup install ghc 9.4.3) results in an error: This is what logs say: i tried using the curl command they say le ...
When using random-fu 0.3.0.0 I get confused exploring the types for random. Checking with :t I get ghci> :t Data.Random.sample Data.Random.sample ...
Cabal suddenly stopped building my project. Nothing much changed in the project itself since the last successful build, I guess only OS updates were i ...
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 co ...
The following code: fails to compile with the following error: Which I guess makes sense, if f does some weird type family stuff. But my fs do n ...
Consider the following module: Lets assume we're using GHC here also. There's somethings I'd note here (which I believe to be true, correct me if ...
I'm new to Haskell, and have found the :type command in the ghci REPL to be really useful for interactively figuring out how things work. So far I've ...
I have a package which generates SVG code (images and icons) However, the resulting svg code is too large because all numbers have lots of decimal pl ...
GHC docs on INLINE pragmas: GHC (with -O, as always) tries to inline (or “unfold”) functions/values that are “small enough,” [...] The major eff ...
I just updated a project to GHC 9.2.4 and some modules raise the ambiguous-fields warning. Reading about -XDuplicateRecordFields, I understand it is n ...
Are there combinators to write Haskell types in pointfree style? I have a type synonym that is something like: I'd like to be able to write the ri ...
I use ghc version 9.4.2 and cabal version 3.8.1.0. I tried to open serial and get error. As undestend from the cabal package folder, I use serialpo ...
Here is the error message: I'm not sure what other process the file is being used for, I checked the logs and they say basically the same as these ...
I try to build qhull from hackage and get the error The file is in the Cdir and the relevant parts of the cabal file are The file qhull_ra.h is ...
I have a web application written in Haskell (using ghcjs on the client side and ghc on the server side) and I need a way to collect the CSS values whi ...
There is ghc-pkg dot but that seems to only work for a ghc package database. ...