Merge pull request #1075 from jvoigtlaender/patch-1
Fix pretty-printing bug concerning unit type
commitfc2d53407854419d77534cfdb78ed72ed1812cdc
authorEvan Czaplicki <info@elm-lang.org>
dateFri 2 Oct 2015, 10:43 (11 years ago)
parent719f335e9ceea6
src/Elm/Compiler/Type.hs+3
@@ -59,6 +59,9 @@ toDoc context tipe =
5959 P.text (if name == "_Tuple0" then "()" else name)
6060
6161 App (Type name) args
62+ | name == "_Tuple0" ->
63+ P.text "()"
64+
6265 | Help.isTuple name ->
6366 P.sep
6467 [ P.cat (zipWith (<+>) (P.lparen : repeat P.comma) (map (toDoc None) args))