python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
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:
Sta...
Xavier Shay
Votes: 0
Answers: 1
How Haskell linking may work given that STG generates custom ABI
As far as I understand,code generated from STG uses very custom ABI, which even has custom call stack.
How linker does work then? Does GHC use custom linker?
uhbif19
Votes: 0
Answers: 1
What good is the open world assumption?
As a (somewhat contrived) example, say I want to use generics to figure out when a type is uninhabited (by a non-bottom value). I can get most of the way there just fine:
class Absurd a where
absu...
fluffyyboii
Votes: 0
Answers: 1
How to get haskell compiler version within code without a long list of CPP if/else conditionals?
Something along the lines of:
import GHC.Version qualified
main :: IO ()
main = print $ GHC.Version.current
-- would print Version 8 10 7
A roundabout way is to execute ghc --version from shell:
imp...
Cigarette Smoking Man
Votes: 0
Answers: 1