Personal tools

FilePath

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Support)
(Update with contents of note as of April 2007)
 
(2 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
Modules.
 
Modules.
   
* Homepage: http://www-users.cs.york.ac.uk/~ndm/projects/libraries.php
+
* Darcs: darcs get http://www.cs.york.ac.uk/fp/darcs/filepath
+
*Home page: http://www-users.cs.york.ac.uk/~ndm/filepath/
  +
*Darcs repo: http://darcs.haskell.org/packages/filepath/
  +
*Haddock: http://www.cs.york.ac.uk/fp/haddock/filepath/
   
 
If you go to the haddock page there are a few little examples at the
 
If you go to the haddock page there are a few little examples at the
Line 21: Line 21:
 
this module succesfully.
 
this module succesfully.
   
Comments welcome. Thanks
+
==Version 1.0 release==
+
Finally, here is a System.FilePath 1.0 release! The FilePath library
== Indications of support/opposition ==
+
is a library for manipulating FilePaths in a cross platform way on
+
both Windows and Unix.
I do not suggest that the number of people on each list is significant, however it's nice to take a rough straw poll of how people feel, and who feels what way. Do not take this as a vote, it's really not. If adding a user based on their indications in email messages (rather than explicit confirmation) I have added their name in ''italics''.
+
This version will be included in GHC 6.6.1 and all future major
+
Haskell compilers.
== Support ==
 
 
The following people support the addition of FilePath into base:
 
 
* Neil Mitchell
 
 
== Oppose ==
 
 
The following people oppose the addition of FilePath, with (optionally) the reason after. Please create a new item in the list for the reasons.
 
   
* Example 1 (1,2,3)
+
'''THINGS TO NOTE:'''
* Example 2 (3)
 
   
== Opposed reasons ==
+
*There are no longer Version_0_10 interfaces - the interface is now stable, please use System.FilePath.
  +
*The library is now "filepath", not "FilePath"
   
# type FilePath = String is a bad design choice, which should not be encouraged
+
[[Category:Libraries]]
# The base libraries are not the place for a FilePath library
 
# The interface in this library is poorly designed
 

Latest revision as of 18:31, 23 June 2007

I have written a System.FilePath module in part based on the one in Yhc, and in part based on the one in Cabal (thanks to Lemmih). The aim is to try and get this module into the base package, as FilePath's are something many programs use, but its all too easy to hack up a little function that gets it right most of the time on most platforms, and there lies a source of bugs.

This module is Posix (Linux) and Windows capable - just import System.FilePath and it will pick the right one. Of course, if you demand Windows paths on all OS's, then System.FilePath.Windows will give you that (same with Posix). Written in Haskell 98 + Hierarchical Modules.


If you go to the haddock page there are a few little examples at the top of the file.

The Yhc project, hquickfile and a few other utilites are already using this module succesfully.

[edit] Version 1.0 release

Finally, here is a System.FilePath 1.0 release! The FilePath library is a library for manipulating FilePaths in a cross platform way on both Windows and Unix. This version will be included in GHC 6.6.1 and all future major Haskell compilers.

THINGS TO NOTE:

  • There are no longer Version_0_10 interfaces - the interface is now stable, please use System.FilePath.
  • The library is now "filepath", not "FilePath"