[GHC] #14343: bad pretty-printing of types with promoted data types
GHC
ghc-devs at haskell.org
Thu Oct 12 07:38:52 UTC 2017
#14343: bad pretty-printing of types with promoted data types
-------------------------------------+-------------------------------------
Reporter: lspitzner | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
Are you sure you put that in right? With GHC 8.2.1 I get
{{{
Prelude> _ :: Proxy '[ 'True ]
<interactive>:3:1: error:
• Found hole: _ :: Proxy '['True]
• In the expression: _ :: Proxy '[ 'True]
In an equation for ‘it’: it = _ :: Proxy '[ 'True]
• Relevant bindings include
it :: Proxy '['True] (bound at <interactive>:3:1)
}}}
But if I miss out the space it parses `'['` as a character literal.
{{{
Prelude> _ :: Proxy '['True ]
<interactive>:4:1: error:
Invalid type signature: _ :: ...
Should be of form <variable> :: <type>
}}}
Hard to avoid that.
Make sense? I'm inclined to say 'wont-fix'.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14343#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list