coda: The coda compiler

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.



The coda compiler.

[Skip to ReadMe]


Dependenciesarray, base (>=4.10 && <5), bound, bytestring (>=0.10.8 && <0.11), bytestring-short, coda, common, comonad (==5.*), console, containers (>= && <0.6), data-default-class (==0.1.*), lens (>=4.15 && <5), llvm-hs-pure (==6.0.*), megaparsec (>=6.0 && <7.0), optparse-applicative, prettyprinter, prettyprinter-ansi-terminal, server, text (==1.2.*), text-short, transformers, version [details]
License(BSD-2-Clause OR Apache-2.0)
CopyrightCopyright (C) 2017-2018 Edward A. Kmett
AuthorEdward A. Kmett
MaintainerEdward A. Kmett <>
Home page
Bug tracker
Source repositoryhead: git clone git://
Executablescodex, llvm-test, codicil
UploadedWed Nov 14 21:48:00 UTC 2018 by EdwardKmett




Build with terminfo.


Build tasty tests.


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainers' corner

For package maintainers and hackage trustees

Readme for coda-0.0.1

[back to package description]


Travis Continuous Integration Status

This package will eventually provide a toy compiler.

For now, it provides an entertaining series of crashes and confusing error messages.

Table of Contents


To install the coda executable, you will need GHC 8.4.1 release candidate 1 or later, and you'll need to run cabal new-build, and fish through dist-newstyle for the executable and put it somewhere in your path.

Once cabal new-install works, this will become a lot easier.

To work on the extension, you'll need to:

  1. Download the repository from if that isn't where you are reading this file from.

  2. Run code . from root of that repository

  3. Start debugging to launch the extension-host following the instructions in Running and Debugging Your Extension.

Alternately you can link the directory directly into your ~/.vscode/extensions folder, which may be useful if you're working on the typescript bits.


Once you have an installed coda executable, bash command line autocompletion is available with:

$ source <(coda --bash-completion-script `which coda`)

You can add this to your .profile or .bashrc


Currently, the build process is being tested on GHC 8.2, but I'm not actively doing anything to shut off older GHCs or newer ones.

Patches that help increase portability are welcome.


Once there is an actual language here documentation will be forthcoming on it.

In the meantime, API documentation is available from


| Directory | Usage | | ------------- | ----- | | .vscode | Visual Studio Code configuration for the current workspace | | bin | Executable scripts | | lib/coda* | Haskell code for the language | | code | Typescript code for the extension | | images | The logo, etc. | | test/code | Typescript code for testing |


Licensed under either of


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual-licensed as above, without any additional terms or conditions.

Contact Information

Contributions and bug reports are welcome!

Please feel free to contact me through github or on the ##coda or #haskell IRC channels on

-Edward Kmett