Skip to content

Refactor HsForAllTy

I got sucked into refactoring HsForAllTy, like this:

data HsType name
 = HsForAllTy (HsForAll name) (LHsType name)
 | ...

data HsForAll name      -- The quantifiers of a HsForAllTy
  = HSF { hsf_flag :: HsExplicitFlag
        , hsf_extra :: Maybe SrcSpan  
        , hsf_qtvs :: LHsTyVarBndrs name
        , hsf_ctxt :: LHsContext name
    }

This makes a number of functions neater, as well as naming the fields of a troublesomely-high-arity data constructor.

This ticket is here to track progress.

Trac metadata
Trac field Value
Version 7.10.1
Type Task
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