add explanation for why strictness is needed here

This commit is contained in:
Joey Hess 2011-08-31 19:50:08 -04:00
parent 38eff1dc1f
commit 55783d886d

View file

@ -80,6 +80,8 @@ checkRemoteUnused' r = do
showLongNote $ remoteUnusedMsg r list showLongNote $ remoteUnusedMsg r list
showLongNote "\n" showLongNote "\n"
where where
{- This should run strictly to avoid the filterM
- building many thunks containing keyLocations data. -}
isthere k = do isthere k = do
us <- keyLocations k us <- keyLocations k
let !there = uuid `elem` us let !there = uuid `elem` us