Skip to content

Commit

Permalink
davegurnell#193: Fix Elm encoder for list fields
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaDanilenko committed Aug 29, 2022
1 parent 88f2923 commit 72295cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/bridges/elm/ElmJsonEncoder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ trait ElmJsonEncoder extends ElmUtils {
"Maybe.withDefault Encode.null (Maybe.map " +
encodeType(optTpe, objectName, fieldName, customTypeReplacements) + ")"
case Arr(arrTpe) =>
"Encode.list (List.map " +
encodeType(arrTpe, objectName, fieldName, customTypeReplacements) + ")"
"Encode.list " +
encodeType(arrTpe, objectName, fieldName, customTypeReplacements)
case Dict(kTpe, vTpe) =>
"(Encode.dict " +
encodeType(kTpe, objectName, fieldName, customTypeReplacements) + " " +
Expand Down

0 comments on commit 72295cd

Please sign in to comment.