Pretty-printer no longer butchers function arrow fixity
authorAlan Zimmerman <alan.zimm@gmail.com>
Mon, 10 Jul 2017 11:00:36 +0000 (13:00 +0200)
committerAlan Zimmerman <alan.zimm@gmail.com>
Mon, 10 Jul 2017 11:03:45 +0000 (13:03 +0200)
commitc506f8353755333e21d5ee35bc71d2c8f9ddcb1b
tree9a9db27e35388afca81dcb3596445894165c3382
parent81377e9e4bd52256946114d9c1dd966d5e3e7692
Pretty-printer no longer butchers function arrow fixity

It now correctly prints the parens around '(Int -> Int)' in

    {-# LANGUAGE TemplateHaskell #-}
    {-# OPTIONS_GHC -ddump-splices #-}
    module Bug where

    $([d| f :: Either Int (Int -> Int)
          f = undefined
        |])

Closes #13942
compiler/hsSyn/Convert.hs
testsuite/tests/printer/Makefile
testsuite/tests/printer/T13942.hs [new file with mode: 0644]
testsuite/tests/printer/T13942.stdout [new file with mode: 0644]
testsuite/tests/printer/all.T