Commit Graph

60 Commits

Author SHA1 Message Date
Chris Done
9d357b24c8 Remove redundant check for /= . or .. 2016-03-04 15:11:06 +01:00
Chris Done
62c681819c Update test suite 2016-03-04 15:09:21 +01:00
Chris Done
c41fa86d17 Bump to 0.5.6 2016-03-04 15:07:00 +01:00
Chris Done
04608e0e53 Reject only .. and . (#13) 2016-03-04 15:06:27 +01:00
Chris Done
47450b5dd6 Bump to 0.5.5 2016-03-04 14:50:28 +01:00
Chris Done
540c24f3a5 Use FilePath.isValid (#12) 2016-03-04 14:49:21 +01:00
Chris Done
b9b921db84 Bump to 0.5.4 2016-03-04 14:41:16 +01:00
Chris Done
2e109c86d8 Reject path consisting of all "." (fixes #13)
Ping @mrkkrp
2016-03-04 14:39:17 +01:00
Chris Done
04fa5d3ea8 Merge pull request #9 from magthe/ClarifyRelative
Clarify what limitations the RelX parsers have.
2016-03-04 14:29:52 +01:00
Chris Done
88eb4f32a8 Merge pull request #12 from mrkkrp/master
Improve description of the package
2016-01-31 11:37:59 +00:00
mrkkrp
01d0f5c968 Add standard header to the ‘Path’ module
The header is nice to have, it's displayed in Haddocks.
2016-01-28 18:10:27 +06:00
mrkkrp
c281f3755e Add year 2016 to copyright notices 2016-01-28 18:10:09 +06:00
mrkkrp
d6674c5ee1 Improve the ‘README.md’ file
Here I copied the blog post announcing the library, because it describes
it very well, and not everyone who discovers the library will know where
to look for such a comprehensive description.

http://chrisdone.com/posts/path-package

I've made two edits to that post to reflect new things:

1. On line 123 there is a mention of ‘fromAbsDir’ and other similar
   functions.

2. On line 363 I've put a link to my ‘path-io’ package that provides
   well-typed interface to ‘directory’ and ‘temporary’. I've written the
   package for my personal needs, because I was tired of the endless
   conversion and I wanted things like recursive copying of
   directories. When I published it, someone opened an issue asking to
   add some functions from Stack's ‘Path.IO’ — that's what I'm going to
   do. I expect it will be able to replace ‘Path.IO’ in Stack soon. I've
   talked to Stack maintainers and they like the package and have
   nothing against the switch.
2016-01-28 18:02:41 +06:00
mrkkrp
de73f8b4ea Improve synopsis and description 2016-01-28 17:47:15 +06:00
Chris Done
9fee9e42da Merge pull request #11 from mrkkrp/master
Fix a typo
2016-01-17 20:31:14 +00:00
mrkkrp
36cc9af231 Fix a typo 2016-01-16 17:22:34 +06:00
Chris Done
9af2a76b2e Merge pull request #10 from rimmington/nfdata
Add NFData instance for Path
2016-01-15 10:23:50 +00:00
Rhys
cd470f2d11 Add NFData instance for Path 2016-01-15 12:07:27 +11:00
Magnus Therning
b5cff315a1 Clarify what limitations the RelX parsers have.
Signed-off-by: Magnus Therning <magnus@therning.org>
2016-01-07 16:15:06 +01:00
Chris Done
28c4f7fe21 Bump to 0.5.3 2015-11-21 19:54:59 +01:00
Chris Done
95fab22567 Merge pull request #7 from mrkkrp/master
Various improvements
2015-11-21 19:53:16 +01:00
mrkkrp
00fabad1f4 Add type-safe synonyms of ‘toFilePath’
This helps to “double check” programmers' assumptions about what kind of
path he is converting into ‘FilePath’. Without these synonyms it's
possible to silently convert wrong type of path into ‘FilePath’.
2015-11-21 16:15:34 +06:00
mrkkrp
733fa04ac3 Write ‘isPrefixOf’ and friends in infix form 2015-11-21 16:14:54 +06:00
mrkkrp
339f7587a3 Remove unused language pragmas 2015-11-21 16:13:52 +06:00
mrkkrp
0476db8ebc Add ‘.stack-work’ to ‘.gitignore’ 2015-11-21 16:12:12 +06:00
Chris Done
57e886b71f Merge pull request #6 from mgsloan/properties-doc-fix
Improve a few property definitions
2015-10-08 09:13:13 -07:00
Michael Sloan
1841d7451c Improve a few property definitions
The properties for stripDir and parent used the name 'parent' as a
variable.

The properties for filename and dirname seemed to be wrong and also used
'parent' as a variable.
2015-10-08 03:00:50 -07:00
Chris Done
62278a77e6 Merge pull request #5 from glasserc/rel-file-tests
test: missing case for parseRelFile
2015-07-09 03:07:35 +02:00
Ethan Glasser-Camp
a4ed4cd504 test: missing case for parseRelFile 2015-07-08 20:28:15 -04:00
Chris Done
c637893aa8 Bump to 0.5.2 2015-06-21 12:19:11 +02:00
Chris Done
09996f1605 Merge pull request #4 from bergmark/no-derivegeneric
Remove unused DeriveGeneric extension, fixes GHC 7.0 build
2015-06-21 12:18:07 +02:00
Adam Bergmark
9f229ecef3 Remove unused DeriveGeneric extension, fixes GHC 7.0 build 2015-06-21 02:29:25 +02:00
Chris Done
44d9e02cc2 Add note in docs about dropTrailingPathSeparator 2015-06-18 08:58:01 +02:00
Chris Done
94a5252ff5 Bump to 0.5.1 2015-06-17 18:45:43 +02:00
Chris Done
df1e191517 Fix syntax error 2015-06-17 18:45:34 +02:00
Chris Done
30890ad3c2 Merge pull request #3 from snoyberg/master
Handle parent directory checks on Windows
2015-06-17 18:43:01 +02:00
Michael Snoyman
9ca83d66b8 Handle parent directory checks on Windows 2015-06-17 19:21:45 +03:00
Chris Done
4e1816392a Fix stripDir p p /= Nothing bug 2015-05-27 17:08:03 +02:00
Chris Done
8f3b169760 Bump to 0.4.0 2015-05-22 11:35:52 +02:00
Chris Done
ffdf4af243 Generalize stripDir to MonadThrow 2015-05-22 11:35:52 +02:00
Chris Done
87a56a93b8 Disallow .. 2015-05-22 11:35:52 +02:00
Chris Done
cb6f472524 Merge pull request #2 from kraai/patch-2
Add source repository information
2015-05-14 17:54:33 +02:00
Chris Done
bff31277e3 Merge pull request #1 from kraai/patch-1
Add ellipsis
2015-05-14 17:48:11 +02:00
kraai
b06a8c9528 Add source repository information 2015-05-14 15:47:04 +00:00
kraai
0c1dd7e493 Add ellipsis 2015-05-14 15:44:41 +00:00
Chris Done
5613ba1dfa Bump for hackage 2015-05-14 08:02:19 +02:00
Chris Done
07aa83ca19 Remove Generic 2015-05-14 08:01:14 +02:00
Chris Done
a68b46b060 Update test suite 2015-05-11 19:01:35 +02:00
Chris Done
9020acc813 Update CHANGELOG 2015-05-11 19:00:34 +02:00
Chris Done
d373cacedb Add dirname 2015-05-11 18:59:26 +02:00