
#9266: getDirectoryContents blow its stack in a huge directory ----------------------------------------+---------------------------------- Reporter: joeyhess | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: libraries/directory | Version: 7.6.2 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: None/Unknown | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ----------------------------------------+---------------------------------- Comment (by nomeata): I was under the impression that people tend to think badly about lazy IO these days, so I’m not sure if it makes sense to make `getDirectoryContents` lazy. Unless of course most people expect it to be. I think a way forward is to make `getDirectoryContents` non-lazy, but not blowing the stack (if that still is a problem on 7.8), and alternatively think about an interface for people who need more control over that. Maybe http://hackage.haskell.org/package/filesystem-conduit-1.0.0.2/docs/Data- Conduit-Filesystem.html is already that solution. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9266#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler