
#14438: Using a (meaningless) generic currency sign (¤) instead of $ causes panicing ---------------------------------+-------------------------------------- Reporter: Izmaki | Owner: (none) Type: bug | Status: closed Priority: low | Milestone: Component: GHCi | Version: 8.0.2 Resolution: duplicate | Keywords: ¤ Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #13106 | Differential Rev(s): Wiki Page: | ---------------------------------+-------------------------------------- Comment (by Izmaki): Ah, apologies for the duplicate. I wasn't able to find something similar when searching. Have a great evening, and thank you for making Haskell better :-) Replying to [comment:1 RyanGlScott]:
Thanks for the bug report. This is a duplicate of #13106, and has been fixed in GHC 8.2:
{{{ GHCi, version 8.2.1: http://www.haskell.org/ghc/ :? for help Loaded GHCi configuration from /home/rgscott/.ghci λ> let ones x = snd $ divMod x 10 λ> ones ¤ (5 :: Integral)
<interactive>:2:6: error: Variable not in scope: (¤) :: (b0 -> b0) -> t0 -> t1
<interactive>:2:14: error: • Expecting one more argument to ‘Integral’ Expected a type, but ‘Integral’ has kind ‘* -> Constraint’ • In an expression type signature: Integral In the second argument of ‘(¤)’, namely ‘(5 :: Integral)’ In the expression: (¤) ones (5 :: Integral) }}}
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14438#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler