[GHC] #2525: maps created by Data.Map.fromAscList fail lookup on
some keys present
GHC
trac at galois.com
Wed Aug 20 14:49:50 EDT 2008
#2525: maps created by Data.Map.fromAscList fail lookup on some keys present
-----------------------+----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Component: libraries/base
Version: 6.8.2 | Severity: normal
Keywords: | Testcase:
Architecture: x86 | Os: Linux
-----------------------+----------------------------------------------------
{{{
import Data.Map
member "foo" $ fromAscList [("foo", True), ("bar", False)]
}}}
The above expression evaluates to False, when it should clearly be True.
This works fine when fromList is used instead.
Tested on 6.8.2, but I don't see anything in the release notes vaguely
related for 6.8.3.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2525>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list