undefined error when calling insert on GHC 7.6.1
jaspervdj opened this issue · comments
Jasper Van der Jeugt commented
I'm using:
ghc-7.6.1
array-0.4.0.1
deepseq-1.3.0.1
containers-0.5.0.0
lrucache-1.1.1.1
When I execute the file:
import qualified Data.Cache.LRU.IO as Lru
main :: IO ()
main = do
lru <- Lru.newAtomicLRU (Just 10)
_ <- Lru.lookup "foo" lru
_ <- Lru.lookup "bar" lru
Lru.insert "bar" "hi" lru
Lru.insert "foo" "hi" lru
I get
Prelude.undefined
This is quite serious since it is affecting all hakyll users on GHC 7.6.1.
@A1kmm If you have some time, could you try to reproduce this, since you also appear to be using lrucache on ghc-7.6.1 (#6).
chowells79 commented
Thanks for the report. Looking into this...
chowells79 commented
Ok, looks like this is the result of a change to containers. That's annoying..
chowells79 commented
Fix in version 1.1.1.2, now on hackage.