elm-export icon indicating copy to clipboard operation
elm-export copied to clipboard

Create Elm types and JSON decoders from Haskell source.

Results 18 elm-export issues
Sort by recently updated
recently updated
newest added

`Spec ["Generated", "API"]` should mean Generated folder is created, but it will not be.

Please review before merging. Some things were done quickly, and I haven't tested aeson compatibility yet, which I still plan to do. [update] Aeson compatibility has now been tested. See...

``` newtype Email = Email Text deriving (Eq, Show, Read, Generic) deriving instance ElmType Email -- [snip] specs :: [Spec] specs = [ Spec ["AutoGenerated", "Api"] ( defElmImports : toElmTypeSource...

Hey, I’ve hacking and contributing around on https://github.com/FPtje/elm-export. I think it’d be a good thing to merge its `master` into yours. If you don’t feel you want to maintain the...

When I have: And I'm using the `fieldLabelModifier`: The `fieldLabelModifier` should apply to the `encoder` field as well, otherwise, my types are mismatched:

Right now the API generator only supports JSON

There is no pattern corresponding to `MultipleConstructors` in the `render` function in the `HasDecoder` instance of `ElmConstructor`

I think the JSON encoder for `Date` is not compatible with Aeson. It uses the `toString` method which produces ``` (elm repl) > toString (Date.fromTime 1491938767000) "" : String ```...

I had an issues with Int-keyed dicts and this one solves it (basically the same as https://github.com/krisajenkins/elm-export/issues/37) BTW: this is the example this PR fixes: https://github.com/CarstenKoenig/YouVote/blob/master/src/server/Poll/Models.hs

Hello, first I would like to say thanks for this awesome module. It was very easy to get going for the most basic case where the JSON field names match...