on master help sign in
Update error for bad values being sent through ports

Json.Value are valid. All values from JavaScript library are not allowed anymore because they don’t exist anymore.

commit69dfa9788443f9fbacea7d34e174d0462b0ffbf1 authorEvan Czaplicki <info@elm-lang.org> dateThu 27 Mar 2014, 19:58 (13 years ago) parentb763cf2
1 file changed+3−4
compiler/Type/ExtraChecks.hs+3−4
compiler/Type/ExtraChecks.hs+3−4
@@ -101,10 +101,9 @@ portTypes rules expr =
101101 , " through port '", name, "' is invalid." ]
102102 , txt [ "It contains ", kind, ":\n" ]
103103 , (P.nest 4 . SPP.pretty $ Alias.realias rules tipe) <> P.text "\n"
104− , txt [ "Acceptable values for ", dir "incoming" "outgoing"
105− , " ports include JavaScript values and" ]
106− , txt [ "the following Elm values: Ints, Floats, Bools, Strings, Maybes," ]
107− , txt [ "Lists, Tuples, ", dir "" "first-order functions, ", "and concrete records." ]
104+ , txt [ "Acceptable values for ", dir "incoming" "outgoing", " ports include:" ]
105+ , txt [ " Ints, Floats, Bools, Strings, Maybes, Lists, Tuples," ]
106+ , txt [ " Json.Values, ", dir "" "first-order functions, ", "and concrete records." ]
108107 ] ++ if couldBeAlias then aliasWarning else []
109108
110109 aliasWarning =