Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Elm/Json.hs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ jsonParserForDef etd =
where
tab n s = replicate n ' ' ++ s
typename = et_name name
declLine [_] | TaggedObject tg el <- encodingType =
" in " ++ unwords [ "decodeSumTaggedObject", show typename, show tg, show el, dictName, isObjectSetName ]
declLine [_] = ""
declLine _ = " in " ++ case encodingType of
ObjectWithSingleField -> unwords [ "decodeSumObjectWithSingleField ", show typename, dictName]
Expand Down