Skip to content

Rename [] to List (#21294)

Vladislav Zavialov requested to merge wip/list-tycon-pun into master

This patch implements a small part of GHC Proposal #475.

The key change is in GHC.Types:

- data [] a = [] | a : [a]
+ data List a = [] | a : List a

And the rest of the patch makes sure that List is pretty-printed as [] in various contexts.

Edited by Vladislav Zavialov

Merge request reports