Saurabh Nanda

Results 231 comments of Saurabh Nanda

Btw, here's the complicated workaround that I'm being forced to use, currently: ``` myAlterations t = case t of ETypeAlias (x@EAlias{ea_fields=fields_}) -> let modifiedFields = (flip DL.map) fields_ $ \(fname,...

@gurgl here's another solution: ``` update :: IO () update = writeFile "elm-ui/src/AutoGen.elm" ([qc|module AutoGen exposing (..) import Json.Decode import Json.Encode exposing (Value) import Json.Helpers exposing (..) import Dict import...

Thanks @bartavelle. In that case, I _think_ I have found a bug in the JSON codec generation. Will try to replicate it properly before reporting. Would it be possible to...

@bartavelle Thanks for the clarification on `ETypeDef` vs `EType`. I'll rephrase my understanding again: - `EType` is trying to describe the structure of a new type that needs to be...

> One thing that would be nice would be a generic Elm AST pretty printer, instead of the terrible string manipulation that happen all over the place. Would you have...

I think I found something for safer Elm code gen - http://hackage.haskell.org/package/language-elm

@agrafix @bartavelle is it alright if we use this thread to discuss evolution of this library? I've gotten a basic POC of using `Servant.Foreign` to generate an Elm API for...

`servant-elm` currently does the following... https://github.com/mattjbray/servant-elm/blob/9c8a6c289877408581462de9e87701b46832cf02/src/Servant/Elm/Internal/Generate.hs#L431-L440 ... but has implemented a hard-coded list of type string conversion functions for 0.19: https://github.com/mattjbray/servant-elm/pull/45/files#diff-7e13462cc66d19b6a0d2a0ddcd7e8864R494

Okay! I've got a PoC in place which can do the following... ...given the following Servant API... ``` data Routes route = Routes { rRunCode :: route :- "runCode" :>...

@agrafix has been awfully quiet lately. Is he online on IRC / Reddit these days?