Superstar64/Hazy: The Hazy Haskell Compiler
github.com·3d
🔗Functional Compilers
Preview
Report Post

The Hazy Haskell Compiler

Hazy is a Haskell compiler where I plan to experiment on making Haskell more performant.

As of now the project is in a very early stages. The compiler currently unable to bootstrap itself, the standard library isn’t implemented yet, some major Haskell features are missing, only a test Javascript backend is implemented.

Quick Start

Ensure that GHC 9.12 and Cabal are downloaded. Then run the following:

# Copy the runtime
cp -R runtime output

# Build the standard library
cabal run -w ghc-9.12 hazy -- -I library/runtime library/base -o output

# Build the test programs
cabal run -w ghc-9.12 hazy -- -I library/runtime -I library/base test/good -o output

# Optionally, Format the generated Javascript
prettier -w output

TODOs

  • Use `Unorder…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help