On Tue, Aug 12, 2008 at 5:34 PM, Tim Newsham <[EMAIL PROTECTED]> wrote:

> I tried to force the data with:
>
>    loadState db = do
>        d <- decode <$> B.readFile stateFile
>        let force = sum $ M.elems $ M.size `fmap` d
>        force `seq` atomically $ writeTVar db d
>
> and I get the same error when trying to writeFile after doing
> a loadState.

What happens if you simply print the number of elements in the map?
Forcing its spine is all you should need.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to