
#9266: getDirectoryContents blow its stack in a huge directory -------------------------------------+------------------------------------- Reporter: joeyhess | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: | Version: 7.8.2 libraries/directory | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Linux | Difficulty: Easy (less than 1 Type of failure: None/Unknown | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by nomeata): This seems to be an instance of the problem described at http://www .joachim-breitner.de/blog/archives/620-Constructing-a-list-in-a-Monad.html (for which I have not found a suitable solution yet). Have you tried passing an a dlist in the accumulator? OTOH, it shouldn’t perform better than your first patch, just result in a different order... You say you use 7.8. Does this mean that the rumors that the stack would be unlimited in 7.8 are not true? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9266#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler