elm-codegen
elm-codegen copied to clipboard
I'd like to be able to conveniently generate inline comments. The main use I have for generated Elm code is copy-pastable example code for reusable components. Sometimes these components need...
## Overview Installing a local file inside of a directory fails when `run` is called. This follows the pattern in the install help guide:  SSCCE project: https://github.com/absynce/elm-codegen-local-import-error. ## Expected...
I'd like to be able to use type and type alias constructors from the `Gen` folder when working with published Elm packages. For example, if I had: ``` type Id...
Using generated package code for `rtfeldman/elm-css` works when using `Elm.ToString` helpers, but not when using `Elm.file`. When using `Elm.file`, `Gen.Css.marginRight (Gen.Css.px 1)` will cause an error like `ELM-CODEGEN ERROR --...
When a function uses a type alias in its annotation, the generated code will use an `Expression` rather than the actual type. That is, if I have a function ```...
https://ellie-app.com/jmbS9XYrfJYa1 ```elm expr1 : Elm.Expression expr1 = let x = Elm.value { name = "x" , importFrom = [] , annotation = Nothing } in Elm.Op.or (Elm.Op.or x x) x...
While converting my code to use elm-codegen I wanted to fix some small quirks of the rendering. Changes in this PR: * Hide module comment if empty * Remove trailing...
Hi Matthew, thanks for the awesome package. It's so awesome in fact, that I'm trying to port my Elm Code generator [travelm-agency](https://github.com/andreasewering/travelm-agency) to use this package under the hood instead...
This starts from #51 and #52 as a base, so if those are merged it will reduce the noise. This PR adds `Elm.Declare.topLevelValue`, which is similar to the other `Elm.Declare`...
This PR includes a `value : List String -> Expression` for all of the function declaration helpers in `Elm.Declare`. This helps in cases where you want to reference a function...