
12 Aug
2008
12 Aug
'08
8:45 p.m.
On Tue, Aug 12, 2008 at 5:34 PM, Tim Newsham
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.