the-sett / elm-syntax-dsl

A DSL for creating Elm syntax trees and pretty printing Elm source code.
BSD 3-Clause "New" or "Revised" License
20 stars 4 forks source link

expose `Elm.Pretty.prettyModule` #36

Open lue-bird opened 3 years ago

lue-bird commented 3 years ago

I have a use case for only printing out the module header. Right now I'm using Elm.CodeGen.file header [] [] Nothing |> prepareLayout and only take the first line.

rupertlssmith commented 3 years ago

Would be useful. Submit a PR and I will get it merged and a new release.