Skip to content

TTG for IPBind wrong extension name

The standard[1] for extension naming is to use the XC prefix for the internal extension points, rather than for a new constructor.

This is violated for IPBind, having

data IPBind id
  = IPBind
        (XIPBind id)
        (Either (Located HsIPName) (IdP id))
        (LHsExpr id)
  | XCIPBind (XXIPBind id)

Swap the usage of XIPBind and XCIPBind

[1] https://ghc.haskell.org/trac/ghc/wiki/ImplementingTreesThatGrow#Namingconventions

Trac metadata
Trac field Value
Version 8.4.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information