Skip to content
  • Alec Theriault's avatar
    Move 'HsBangTy' out in constructor arguments · 0361fc03
    Alec Theriault authored and Ben Gamari's avatar Ben Gamari committed
    When run with -haddock, a constructor argument can have both a a
    strictness/unpackedness annotation and a docstring. The parser binds
    'HsBangTy' more tightly than 'HsDocTy', yet for constructor arguments we
    really need the 'HsBangTy' on the outside.
    
    This commit does this shuffling in the 'mkConDeclH98' and 'mkGadtDecl'
    smart constructors.
    
    Test Plan: haddockA038, haddockC038
    
    Reviewers: bgamari, dfeuer
    
    Reviewed By: bgamari
    
    Subscribers: dfeuer, rwbarton, thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4727
    0361fc03