# elm-syntax [](https://travis-ci.com/folq/elm-syntax) [](https://hackage.haskell.org/package/elm-syntax)
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](http://hackage.haskell.org/package/bound)
for scope-safe local names.
* It defines pretty printers from the ASTs to syntactically correct Elm code.