Skip to content

Commit

Permalink
Comment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Peaker committed May 2, 2009
1 parent b41b69c commit c42ac01
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions src/Data/MList/IO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ import Data.MList(MList(..))
import Data.MList.Control(while)
import System.IO(Handle, hGetLine, hIsEOF)

-- System.IO.hGetLine is strict I/O, unlike System.IO.hGetContents
hGetLines :: Handle -> MList IO String
hGetLines handle = while (fmap not $ hIsEOF handle) (hGetLine handle)
5 changes: 0 additions & 5 deletions src/Example.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ main = do
print x3
print =<< MList.toList result3

-- putStrLn "Testing monad instance..."
-- let result2 = MList.concat $ fmap print ls
-- MList.MCons line2 _ <- MList.unMList result2
-- print line2

putStrLn "Testing files and instances ..."
let enumStr = fmap (uncurry (++) . first ((" " ++) . (++ " ") . show)) . enumerate
blah = enumStr . mlistForPath $ "test/blah"
Expand Down

0 comments on commit c42ac01

Please sign in to comment.