Skip to content
  • Simon Peyton Jones's avatar
    6e207dea
    Simplify and tidy up the handling of tuple names · 6e207dea
    Simon Peyton Jones authored
    This fixes 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.
    
    (cherry picked from commit 750271e6)
    
    Conflicts:
    	testsuite/tests/th/all.T
    6e207dea
    Simplify and tidy up the handling of tuple names
    Simon Peyton Jones authored
    This fixes 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.
    
    (cherry picked from commit 750271e6)
    
    Conflicts:
    	testsuite/tests/th/all.T
Loading