The ajhc package

[ Tags: compiler, gpl, library, program ] [ Propose Tags ]

The jhc is a haskell compiler which aims to produce the most efficient programs possible via whole program analysis and other optimizations.

The jhc is very minimalist in that it does not have a precompiled run time system, but rather generates what is needed as part of the compilation process. However, back ends do have specific run-time representations of data, which can be affected by things like the choice of garbage collector.

[Skip to Readme]


Dependencies array, base (>=4.0 && <5), binary, bytestring, containers, directory, fgl, filepath, haskeline, HsSyck, mtl, old-time, pretty, process, random, regex-compat, syb, temporary, unix, utf8-string, Win32, zlib [details]
License GPL-2
Author John Meacham <>
Maintainer Kiwamu Okabe <>
Category Compiler
Home page
Source repo head: git clone
Uploaded Mon Apr 1 16:30:16 UTC 2013 by KiwamuOkabe
Distributions NixOS:
Executables ajhc
Downloads 4518 total (70 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-21 [all 8 reports]
Hackage Matrix CI


Maintainer's Corner

For package maintainers and hackage trustees

Readme for ajhc-

[back to package description]

Ajhc - arafura-jhc Build Status

A fork of jhc. And also Haskell compiler.

This project is founded by Metasepi Project.

How to install

$ cabal install ajhc

How to build latest version

$ sudo apt-get install make locales autoconf libreadline-dev \
  libwww-perl libconfig-yaml-perl graphviz haskell-platform drift pandoc \
  libghc-readline-dev libghc-utf8-string-dev libghc-hssyck-dev
$ git clone git://
$ cd ajhc
$ git checkout arafura
$ autoreconf -i
$ ./configure
$ make cabal-install

For developing

First, you should use the arafura branch, rather than master branch.

You should send patch to jhc, if testing on Ajhc is good.

$ darcs get
$ cd jhc/
$ patch -p1 < ~/yourfile.patch
$ darcs record -a
$ darcs send

The command darcs send sends email the patch to jhc author (= John Meacham).

Needing to install/build on Windows (currently in progress)

Install msys

Install below.

  • C Compiler
  • MSYS Basic System
  • MinGW Developer ToolKit

You should run cabal install on msys console.

Install Git for Windows

It's good choosing the below option.

  • "Checkout as-is, commit as-is"
  • "Run Git and included Unix tools from the Windows Command Prompt"

Install Haskell Platform

Install DrIFT

$ cabal install DrIFT-cabalized

Future plan



  • No more depend on DrIFT. Use
  • No more depend on Perl (LWP and YAML).
  • Support LPCXpresso NXP LPX1769 with demo.
  • Rewrite Cortex-M3 base library with Ajhc.
  • Pass all regress test, and enable regress fail setting on travis-ci.
  • Analyze jhc internal (Japanese doc).
  • Find critical region of Ajhc for reentrant and thread safe.
  • Port Haskell libraries on haskell-platform to Ajhc.
  • Understand jhc's region inference.
  • Find the method to implement GC that can be interrupted.
  • Get smaller RTS. Benchmark the RTS for running on custom FPGA CPU.
  • Start rewritng NetBSD kernel with Ajhc.