Skip to content
  • Rik Steenkamp's avatar
    1308be34
    Fix printing of pattern synonym types · 1308be34
    Rik Steenkamp authored and Ben Gamari's avatar Ben Gamari committed
    Removes the call to `patSynType :: PatSyn -> Type` in `Convert.hs` as this
    function will be removed from GHC. Instead, we use the function `patSynSig`
    and build the `HsDecl` manually. This also fixes the printing of the two
    contexts and the quantified type variables in a pattern synonym type.
    
    Reviewers: goldfire, bgamari, mpickering
    
    Differential Revision: https://phabricator.haskell.org/D2048
    
    (cherry picked from commit 3ddcbd6b)
    1308be34
    Fix printing of pattern synonym types
    Rik Steenkamp authored and Ben Gamari's avatar Ben Gamari committed
    Removes the call to `patSynType :: PatSyn -> Type` in `Convert.hs` as this
    function will be removed from GHC. Instead, we use the function `patSynSig`
    and build the `HsDecl` manually. This also fixes the printing of the two
    contexts and the quantified type variables in a pattern synonym type.
    
    Reviewers: goldfire, bgamari, mpickering
    
    Differential Revision: https://phabricator.haskell.org/D2048
    
    (cherry picked from commit 3ddcbd6b)
Loading