[GHC] #13584: ghci parse error on operator info
GHC
ghc-devs at haskell.org
Mon Apr 17 19:16:44 UTC 2017
#13584: ghci parse error on operator info
-------------------------------------+-------------------------------------
Reporter: akegalj | Owner: (none)
Type: bug | Status: new
Priority: lowest | Milestone:
Component: GHCi | Version: 8.0.2
Resolution: | Keywords: parse, info,
| operator
Operating System: Linux | Architecture: x86_64
Type of failure: Incorrect result | (amd64)
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Description changed by akegalj:
@@ -21,1 +21,1 @@
- use the same parser here and there:ž
+ use the same parser in both places:
New description:
If requested info about some operator, ie `(+)` `:info (+)` is working as
expected:
{{{#!haskell
> :i (+)
class Num a where
(+) :: a -> a -> a
...
-- Defined in ‘GHC.Num’
infixl 6 +
}}}
When additional space character is there `:info (+ )` it won't parse:
{{{#!haskell
> :i (+ )
<interactive>:1:3: error:
parse error (possibly incorrect indentation or mismatched brackets)
}}}
Note that the same thing is working with `:type` so its strange it doesn't
use the same parser in both places:
{{{#!haskell
> :t (+ )
(+ ) :: Num a => a -> a -> a
}}}
--
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13584#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list