on master help sign in
Add unit () to error message that lists valid port values
c5fd7fdEvan Czaplicki
compiler/Type/ExtraChecks.hs+1−1
@@ -117,7 +117,7 @@ portTypes expr =
117 , txt [ "It contains ", kind, ":\n" ]
117 , txt [ "It contains ", kind, ":\n" ]
118 , P.nest 4 (PP.pretty tipe) <> P.text "\n"
118 , P.nest 4 (PP.pretty tipe) <> P.text "\n"
119 , txt [ "Acceptable values for ", dir "incoming" "outgoing", " ports include:" ]
119 , txt [ "Acceptable values for ", dir "incoming" "outgoing", " ports include:" ]
120− , txt [ " Ints, Floats, Bools, Strings, Maybes, Lists, Arrays, Tuples," ]
120+ , txt [ " Ints, Floats, Bools, Strings, Maybes, Lists, Arrays, Tuples, unit values," ]
121 , txt [ " Json.Values, ", dir "" "first-order functions, ", "and concrete records." ]
121 , txt [ " Json.Values, ", dir "" "first-order functions, ", "and concrete records." ]
122 ]
122 ]
123
123