indent
This commit is contained in:
parent
faa4935047
commit
fdf988be6d
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ import Control.Monad
|
||||||
{- A version of hgetContents that is not lazy. Ensures file is
|
{- A version of hgetContents that is not lazy. Ensures file is
|
||||||
- all read before it gets closed. -}
|
- all read before it gets closed. -}
|
||||||
hGetContentsStrict :: Handle -> IO String
|
hGetContentsStrict :: Handle -> IO String
|
||||||
hGetContentsStrict = hGetContents >=> \s -> length s `seq` return s
|
hGetContentsStrict = hGetContents >=> \s -> length s `seq` return s
|
||||||
|
|
||||||
{- A version of readFile that is not lazy. -}
|
{- A version of readFile that is not lazy. -}
|
||||||
readFileStrict :: FilePath -> IO String
|
readFileStrict :: FilePath -> IO String
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue