On my WinXP (sp3) machine with the GHC Haskell Platform (2013.2.0.0), attempting to compile code results in the following error unless the file in question is contained within a subdirectory, i.e., not root ('C:\'):
Prelude> :l doubleMe.hs
[1 of 1] Compiling Main ( doubleMe.hs, interpreted )
*** Exception: CreateDirectory ".": permission denied (Access is denied.)
Does anyone know if this is a bug? If so, it has persisted across multiple versions of GHC and I am beginning to suspect storing haskell code in subdirectories on Windows machines is simply a necessity. Is the error reproducible on *nix machines?
Thanks.
~Caitlin
mkdir .
shouldn't do anything – s-ol