Prettier printing for list types
commit11294300fcae22a71bcea1083edc69985056b9d9
authorEvan Czaplicki <info@elm-lang.org>
dateWed 21 Aug 2013, 19:44 (13 years ago)
parent0dea178
compiler/SourceSyntax/Type.hs+1
@@ -67,6 +67,7 @@ prettyParens tipe = parensIf needed (pretty tipe)
6767 needed =
6868 case tipe of
6969 Lambda _ _ -> True
70+ Data "_List" [_] -> False
7071 Data _ [] -> False
7172 Data _ _ -> True
7273 _ -> False