Re: [GHC] #11825: Pretty printer doesn't display functional dependency with ‘→’

GHC ghc-devs at haskell.org
Thu May 19 10:44:24 UTC 2016


#11825: Pretty printer doesn't display functional dependency with ‘→’
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:
            Type:  feature request   |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  GHCi              |              Version:  7.10.3
      Resolution:  invalid           |             Keywords:  unicode,
                                     |  UnicodeSyntax
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by thomie):

 * status:  new => closed
 * keywords:   => unicode, UnicodeSyntax
 * resolution:   => invalid


Comment:

 Use `-fprint-unicode-syntax`. See #8959 for details.

 {{{
 $ ghci
 GHCi, version 8.0.0.20160511: http://www.haskell.org/ghc/  :? for help
 Prelude> import Control.Monad.Free
 Prelude Control.Monad.Free> :set -fprint-unicode-syntax
 Prelude Control.Monad.Free> :i MonadFree
 class Monad m ⇒ MonadFree (f ∷ * → *) (m ∷ * → *) | m -> f where
   wrap ∷ f (m a) → m a
   default wrap ∷ (m ~ t n, Control.Monad.Trans.Class.MonadTrans t,
                   MonadFree f n, Functor f) ⇒
                  f (m a) → m a
         -- Defined in ‘Control.Monad.Free.Class’
 instance [safe] Functor f ⇒ MonadFree f (Free f)
   -- Defined in ‘Control.Monad.Free’
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11825#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list