projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
762707e
)
Add some type sigs
author
Ian Lynagh
<igloo@earth.li>
Tue, 6 Feb 2007 23:24:39 +0000
(23:24 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Tue, 6 Feb 2007 23:24:39 +0000
(23:24 +0000)
GHC/IO.hs
patch
|
blob
|
history
diff --git
a/GHC/IO.hs
b/GHC/IO.hs
index
096cff0
..
37e0d67
100644
(file)
--- a/
GHC/IO.hs
+++ b/
GHC/IO.hs
@@
-178,13
+178,14
@@
hGetLine h = do
Nothing -> hGetLineUnBuffered h
Just l -> return l
-
+hGetLineBuffered :: Handle__ -> IO String
hGetLineBuffered handle_ = do
let ref = haBuffer handle_
buf <- readIORef ref
hGetLineBufferedLoop handle_ ref buf []
-
+hGetLineBufferedLoop :: Handle__ -> IORef Buffer -> Buffer -> [String]
+ -> IO String
hGetLineBufferedLoop handle_ ref
buf@Buffer{ bufRPtr=r, bufWPtr=w, bufBuf=raw } xss =
let