BSD-3-Clause licensed by Olle Fredriksson
Maintained by [email protected]
This version can be pinned in stack with:elm-syntax-0.3.3.0@sha256:4a03c1778c38b9c924e7e9aca07de294ec675bafa9d9184e91a574c50a3ca40c,2312

elm-syntax Hackage

A library for generating Elm syntax from Haskell in a scope-safe way.

This library has two main parts:

  • It defines abstract syntax trees (ASTs) for Elm definitions, expressions, patterns, and types, using the bound library for scope-safe local names.
  • It defines pretty printers from the ASTs to syntactically correct Elm code.

Changes

Changelog for elm-syntax

0.3.3.0

  • Add support for GHC up to 9.6

0.3.2.0

  • The Monad instance for Expression has been redefined, leading to considerably faster performance. (see #4)

0.3.1.0

  • Simplify record projections on known records
  • Write explicit export lists
  • Fix build with GHC 9.0. (see #2)

0.3.0.0

  • Add support for parameterised types
  • Handle Basics.() in isConstructor check
  • Simplify case-of-case expressions

0.2.0.0

  • Add simplification module with some useful optimisations

0.1.0.0

  • Initial release