The Eta team is happy to announce a new version of Eta — v0.8.

Etlas v1.4 is also released and is required to use the new features.

If you haven’t installed before, you can now install Eta using your favorite installation method:

Gradle

Etlas (Cabal compatible build tool for Eta)

Source

Docker

Nix

If you have a previous version of Eta installed via Etlas, getting Eta v0.8 is as easy as the following etlas commands:

$ etlas update

$ etlas select latest

This release implements two long-awaited features:

Eta REPL — It is based on GHCi and provides a way to interactively write Eta programs using the read-eval-print-loop.

— It is based on GHCi and provides a way to interactively write Eta programs using the read-eval-print-loop. Template Metaprogramming — It is based on Template Haskell and allows you to do code generation at compile time similar to macros in Lisp-like languages.

Eta REPL

Eta REPL

You can fire up a REPL from anywhere with the following command:

$ etlas repl .......

Prelude>

For more details check out the Eta REPL documentation.

Template Metaprogramming

Metaprogramming in Eta

Metaprogramming provides a way to manipulate code as you would data. Eta provides a form of metaprogramming called template metaprogramming based on GHC’s TemplateHaskell.

For more details check out the relevant documentation.

Next major feature is the Direct Java Interop which can be tracked here.

We thank all the contributors and the community members who helped us get here.

If you have any issues, please reach out to us!

Gitter / IRC / Slack / Google Group / GitHub / Twitter