Haskell
How Atracode compiles Haskell, what it is verified against, and what it refuses.
- Style
- Functional
- Verified against
- GHC 9.6.6
- Published results
- factorial 25, 2^200 and F(300+) exact
What is supported
ADTs, guards, where/let, laziness via demand-driven evaluation, closure specialization, exact arbitrary-precision Integer.
Full algebraic and lazy semantics.
How it is verified
Every Haskell program is compiled twice, once by Atracode and once by GHC 9.6.6. Both builds run over the same large set of inputs and must agree bit for bit in output and memory before the compile succeeds. See verification for how the sweep works.
$ atracode compile main.src
verified raven:3f1c… (illustrative)What gets refused
Anything that depends on the world outside the program, such as the clock, the network, environment variables or unseeded randomness, is refused at its exact line and column instead of being approximated. Pass those values in as inputs and compile again. Refusals lists the common causes and fixes.