allow lazy reading of map contents
Don't explicitly close; hGetContents will close when read is done.
This commit is contained in:
parent
09e6ddc6ff
commit
f86462b475
1 changed files with 1 additions and 1 deletions
|
@ -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. -}
|
||||
|
|
Loading…
Reference in a new issue