allow lazy reading of map contents

Don't explicitly close; hGetContents will close when read is done.
This commit is contained in:
Joey Hess 2013-01-18 13:16:16 -04:00
parent 09e6ddc6ff
commit f86462b475

View file

@ -44,7 +44,7 @@ associatedFilesRelative key = do
liftIO $ catchDefaultIO [] $ do
h <- openFile mapping ReadMode
fileEncoding h
hClose h `after` (lines <$> hGetContents h)
lines <$> hGetContents h
{- Changes the associated files information for a key, applying a
- transformation to the list. Returns new associatedFiles value. -}