#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
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs