@@ -626,10 +626,11 @@ elmListOfMaybes ds = "List.filterMap identity" <$> indent 4 (elmList ds)
626626
627627defaultElmToString :: EType -> Text
628628defaultElmToString argType =
629− case argType of
630− ETyCon (ETCon "Bool") -> "(\\value -> if value then \"1\" else \"0\")"
631− ETyCon (ETCon "Posix") -> "Time.posixToMillis >> String.fromInt)"
632− _ -> "String.fromInt"
629+ case argType of
630+ ETyCon (ETCon "Bool") -> "(\\value -> if value then \"1\" else \"0\")"
631+ ETyCon (ETCon "Posix") -> "Time.posixToMillis >> String.fromInt)"
632+ ETyApp (ETyCon (ETCon "Maybe")) v -> defaultElmToString v
633+ _ -> "String.fromInt"
633634
634635toString :: ElmOptions -> EType -> Doc
635636toString opts argType =