[GHC] #10167: Error with dash character
GHC
ghc-devs at haskell.org
Tue Mar 17 22:24:24 UTC 2015
#10167: Error with dash character
-------------------------------------+-------------------------------------
Reporter: elvinz | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.3
Keywords: | Operating System: Windows
Architecture: | Type of failure: Incorrect
Unknown/Multiple | warning at compile-time
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Revisions: |
-------------------------------------+-------------------------------------
When I copy the formula from the webpage
http://www.experiglot.com/2006/06/07/how-to-convert-from-an-annual-rate-
to-an-effective-periodic-rate-javascript-calculator/ as this formula:
yearlyToMonthly rate nbPeriods = (1 + rate)(1 / nbPeriods) – 1
I get the following error message in ghci which is due the the minus
character not being encoded as an hyphen but as an en dash:
main.hs:3:60: Not in scope: `*** Exception: <stderr>: commitBuffer:
invalid argu
ment (invalid character)
Would it be possible to have a more informative error message ? My system
is win 7 64 bits, and the locale is fr;French (France).
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10167>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list