projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix for hGetBufSome
[ghc-base.git]
/
GHC
/
IO
/
Handle
/
Text.hs
diff --git
a/GHC/IO/Handle/Text.hs
b/GHC/IO/Handle/Text.hs
index
39482bc
..
b0f3a24
100644
(file)
--- a/
GHC/IO/Handle/Text.hs
+++ b/
GHC/IO/Handle/Text.hs
@@
-911,8
+911,8
@@
hGetBufSome h ptr count
bufReadNBEmpty h_ buf (castPtr ptr) 0 count
haFD :: Handle__ -> FD
-haFD h_@Handle__{} =
- case cast h_ of
+haFD h_@Handle__{..} =
+ case cast haDevice of
Nothing -> error "not an FD"
Just fd -> fd