[Haskell-cafe] Handling Windows file name conventions without unix (Posix) package?

Albert Y. C. Lai trebla at vex.net
Sun Apr 13 21:33:09 UTC 2014


On 14-04-13 12:56 AM, Dominick Samperi wrote:
> The unix package (System.Posix) is not supported under Windows and
> I wonder if there is an alternative solution that deals with the odd file
> naming convention under windows (backward vs unix forward slash),
> spaces in file names, etc.

module System.FilePath is a common interface providing the right thing 
for the hosting OS. It comes with GHC. For example you can use the </> 
operator without worry.



More information about the Haskell-Cafe mailing list