Simplify and tidy up the handling of tuple names

Authored by simonpj on Apr 4 2014, 2:41 AM.

Description

Simplify and tidy up the handling of tuple names

This fixes Trac Trac #8954.

There were actually three places where tuple occ-names
were parsed:

  • IfaceEnv.lookupOrigNameCache
  • Convert.isBuiltInOcc
  • OccName.isTupleOcc_maybe

I combined all three into TysWiredIn.isBuiltInOcc_maybe
Much nicer.

Details

Committed
simonpjApr 4 2014, 2:46 AM
Pushed
bgamariAug 25 2016, 1:39 PM
Parents
rGHCDIFFe94ed11a09be: With AutoDeriveTypeable, derive for promoted constructors, too.
Branches
Unknown
Tags
Unknown