#4317: Add comments to the definition of IODeviceType (module GHC.IO.Device)
---------------------------------+------------------------------------------
Reporter: golubovsky | Owner: simonmar
Type: proposal | Status: new
Priority: normal | Milestone: 7.0.1
Component: libraries/base | Version: 6.12.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: Documentation bug
---------------------------------+------------------------------------------
Comment(by golubovsky):
Well, the idea of newline-separated names was that output is immediately
printable, and can be tirned into a list of strings using the lines
function.
Zero-separated output does not have this property.
OTOH, there was an alternative proposal in my e-mail that the handle could
provide a serialized list of {{{FileStatus}}} (or similar) structures,
which is slower of course, but if one wants to extract as much file
information as possible not worrying about being printable this is IMHO a
better (yet complicated) way.
I still stand for newline-separated output.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4317#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs