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
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
36cc9af231
Fix a typo
2016-01-16 17:22:34 +06: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
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
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
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
df1e191517
Fix syntax error
2015-06-17 18:45:34 +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
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
kraai
0c1dd7e493
Add ellipsis
2015-05-14 15:44:41 +00:00
Chris Done
07aa83ca19
Remove Generic
2015-05-14 08:01:14 +02:00
Chris Done
d373cacedb
Add dirname
2015-05-11 18:59:26 +02:00
Chris Done
ef8503f38f
Rename parentAbs to parent
2015-05-11 18:40:54 +02:00
Chris Done
c0e93d2167
Restrict parentAbs return to Dir
2015-05-11 08:58:34 +02:00
Chris Done
cb5545f2fe
Add Typeable instances
2015-05-11 08:47:17 +02:00
Chris Done
3621b46b44
Fix docs
2015-05-08 15:57:03 +02:00
Chris Done
cf7139b381
Add some commentary
2015-05-08 14:18:03 +02:00
Chris Done
c4895949ee
Add some operations
2015-05-08 14:03:37 +02:00
Chris Done
1e5b6675c2
Basic Path type with parsers and test suite
2015-05-08 13:14:54 +02:00
Chris Done
accc5c3794
First commit
2015-05-07 20:15:42 +02:00