[Haskell-beginners] Does System.Directory work on Windows XP?

Patrick Larrivee-Woods plarrive at sfu.ca
Wed Nov 4 19:02:47 EST 2009


Hi,

I"m having trouble getting the System.Directory module in ghci on a 
Windows XP machine. Whenever I call a function like getCurrentDirectory 
or getDirectoryContents I get no results back. I was wondering if anyone 
knows why this is happening, or if someone can point me to a module that 
works on Windows.

Here's an example of what I get:

   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.4.2, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base-1.0 ... linking ... done.
Prelude> :module System.Directory
Prelude System.Directory> getCurrentDirectory
Prelude System.Directory> getDirectoryContents "."
Prelude System.Directory> getDirectoryContents "c:\\perl"
Prelude System.Directory>


More information about the Beginners mailing list