System.FilePath 0.11
Sponsored Links
System.FilePath 0.11 Ranking & Summary
File size:
0.014 MB
Platform:
Any Platform
License:
GPL (GNU General Public License)
Price:
Downloads:
964
Date added:
2007-03-09
Publisher:
Siti Saleh
System.FilePath 0.11 description
System.FilePath is a Haskell library from Yhc originally, now with added tweaks. Pure Haskell 98 (with Hierarchical libraries), no preprocessor. It has a nice interface for doing file manipulations, and works portably between Windows and Unix. [Not the same as http://darcs.haskell.org/~lemmih/FilePath/]
The interface is still changing, for that reason please use System.FilePath.Version_0_10 or System.FilePath.Version_0_11 which will be guaranteed to work unmodified in future releases.
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 FilePaths 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 OSs, then System.FilePath.Windows will
give you that (same with Posix). Written in Haskell 98 + Heirarchical
Modules.
Haddock:
http://www-users.cs.york.ac.uk/~ndm/projects/filepath/System-FilePath.html
Darcs: darcs get http://www.cs.york.ac.uk/fp/darcs/filepath
Source: http://www.cs.york.ac.uk/fp/darcs/filepath/System/FilePath.hs
Homepage: http://www-users.cs.york.ac.uk/~ndm/projects/libraries.php
If you go to the haddock page there are a few little examples at the
top of the file.
Acknowledgements
Thanks to Marc Webber, shapr, David House, Lemmih, others...
Competitors
System.FilePath from Cabal, by Lemmih
FilePath.hs and NameManip.hs from MissingH
The one from Cabal and FilePath.hs in MissingH are both very similar, I
stole lots of good ideas from those two.
NameManip seems to be more unix specific, but all functions in that module
have equivalents in this new System.FilePath module.
Hopefully this new module can be used without noticing any lost functions,
and certainly adds new features/functions to the table.
Should FilePath by an abstract data type?
The answer for this library is no. This is a deliberate design decision.
In Haskell 98 the definition is type FilePath = String, and all functions
operating on FilePaths, i.e. readFile/writeFile etc take FilePaths. The
only way to introduce an abstract type is to provide wrappers for these
functions or casts between Strings and FilePathAbstracts.
There are also additional questions as to what constitutes a FilePath, and
what is just a pure String. For example, "/path/file.ext" is a FilePath. Is
"/" ? "/path" ? "path" ? "file.ext" ? ".ext" ? "file" ?
With that being accepted, it should be trivial to write
System.FilePath.ByteString which has the same interface as System.FilePath
yet operates on ByteStrings.
The interface is still changing, for that reason please use System.FilePath.Version_0_10 or System.FilePath.Version_0_11 which will be guaranteed to work unmodified in future releases.
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 FilePaths 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 OSs, then System.FilePath.Windows will
give you that (same with Posix). Written in Haskell 98 + Heirarchical
Modules.
Haddock:
http://www-users.cs.york.ac.uk/~ndm/projects/filepath/System-FilePath.html
Darcs: darcs get http://www.cs.york.ac.uk/fp/darcs/filepath
Source: http://www.cs.york.ac.uk/fp/darcs/filepath/System/FilePath.hs
Homepage: http://www-users.cs.york.ac.uk/~ndm/projects/libraries.php
If you go to the haddock page there are a few little examples at the
top of the file.
Acknowledgements
Thanks to Marc Webber, shapr, David House, Lemmih, others...
Competitors
System.FilePath from Cabal, by Lemmih
FilePath.hs and NameManip.hs from MissingH
The one from Cabal and FilePath.hs in MissingH are both very similar, I
stole lots of good ideas from those two.
NameManip seems to be more unix specific, but all functions in that module
have equivalents in this new System.FilePath module.
Hopefully this new module can be used without noticing any lost functions,
and certainly adds new features/functions to the table.
Should FilePath by an abstract data type?
The answer for this library is no. This is a deliberate design decision.
In Haskell 98 the definition is type FilePath = String, and all functions
operating on FilePaths, i.e. readFile/writeFile etc take FilePaths. The
only way to introduce an abstract type is to provide wrappers for these
functions or casts between Strings and FilePathAbstracts.
There are also additional questions as to what constitutes a FilePath, and
what is just a pure String. For example, "/path/file.ext" is a FilePath. Is
"/" ? "/path" ? "path" ? "file.ext" ? ".ext" ? "file" ?
With that being accepted, it should be trivial to write
System.FilePath.ByteString which has the same interface as System.FilePath
yet operates on ByteStrings.
System.FilePath 0.11 Screenshot
System.FilePath 0.11 Keywords
System.FilePath
FilePath
System.FilePath 0.11
FilePath.hs
FilePaths
now with added
haskell library
Haskell
module
YHC
library
tweaks
added
System.FilePath 0.11
Libraries
Programming
Bookmark System.FilePath 0.11
System.FilePath 0.11 Copyright
WareSeeker periodically updates pricing and software information of System.FilePath 0.11 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of System.FilePath 0.11 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
haskell indian college
haskell library vermont
colleen haskell
haskell's
haskell library reference
haskell indian nations university
filepathsrv.exe
haskell national bank
neil haskell
module master
andrew haskell library
haskell programming
warrants list in haskell county texas
haskell invitational
eddie haskell
haskells
lunar module
haskell library functions
Related Software
Makefile::Parser is a Simple Parser for Makefiles. Free Download
SlimPeer project client is a fully PeerCast compatible but small, fast, and easy to use peer. Free Download
FLV::VideoTag is a flash video file data structure Perl module. Free Download
Filter::Macro is a Perl module to make macro modules that are expanded inline. Free Download
PatientOS is a free clinical information management system designed for hospitals and healthcare practitioners. Free Download
Tasks project is a simple to do list application that uses libecal, part of Embedded Evolution Data Server. Free Download
pyhada checks selected webpages periodically, for updates, and displays the updates in the dockapp. Free Download
Kurush aims to be an easy to use personal finance tool for GNOME Desktop. Free Download
Latest Software
Popular Software
Favourite Software