Skip to content
  • sheaf's avatar
    Keep track of promotion ticks in HsOpTy · d85c7dcb
    sheaf authored and Matthew Pickering's avatar Matthew Pickering committed
    This patch adds a PromotionFlag field to HsOpTy, which is used
    in pretty-printing and when determining whether to emit warnings
    with -fwarn-unticked-promoted-constructors.
    
    This allows us to correctly report tick-related warnings for things
    like:
    
      type A = Int : '[]
      type B = [Int, Bool]
    
    Updates haddock submodule
    
    Fixes #19984
    d85c7dcb