| 1 |
0.9.6 |
| 2 |
* Support for `ospath` |
| 3 |
|
| 4 |
0.9.5 |
| 5 |
* Add `splitDrive`, `takeDrive`, `dropDrive` and `isDrive`. |
| 6 |
|
| 7 |
0.9.4 was an accidental release of the unreleased 0.9.3 without the appropriate changelog. |
| 8 |
|
| 9 |
0.9.2 |
| 10 |
* Data instances for Rel, Abs, File, and Dir. |
| 11 |
* Bump hashable upper bound to <1.5. |
| 12 |
|
| 13 |
0.9.1 |
| 14 |
* Support for genvalidity >=1.0.0.0 |
| 15 |
* `mapSomeBase` and `prjSomeBase` for modifying or projecting SomeBase. |
| 16 |
|
| 17 |
0.9.0 |
| 18 |
* Fix inconsistencies on different platforms: [#166](https://github.com/commercialhaskell/path/issues/166) |
| 19 |
* `replaceProperPrefix` |
| 20 |
* Make it possible to use windows paths on posix and vice versa |
| 21 |
|
| 22 |
0.8.0 |
| 23 |
* Rerelease of 0.7.1 with better version number |
| 24 |
|
| 25 |
0.7.1: |
| 26 |
* Test with GHC 8.8.2, 8.8.3, 8.10.1. |
| 27 |
* Export SomeBase constructor. |
| 28 |
* Fix Lift severe Lift instance bug |
| 29 |
|
| 30 |
0.7.0: |
| 31 |
* BREAKING CHANGE: "fileExtension" now throws an exception if the file has no |
| 32 |
extension. You can use the result as a "Maybe" in pure |
| 33 |
code or handle the exception appropriately in any other monad. |
| 34 |
* Old extension operations "addFileExtension" and "setFileExtension" have |
| 35 |
been deprecated and replaced by "addExtension" and "replaceExtension" |
| 36 |
respectively with new behavior. |
| 37 |
ADAPTING YOUR CODE TO THIS CHANGE: |
| 38 |
* Code that sets an extension not starting with a "." e.g. "foo", must |
| 39 |
be changed such that it starts with a "." i.e. ".foo". |
| 40 |
* Code that sets multiple extensions in one go e.g. ".tar.gz" must be |
| 41 |
changed to set them one at a time instead i.e. add ".tar" first and |
| 42 |
then add ".gz". |
| 43 |
* Code that sets an extension starting with multiple dots e.g. |
| 44 |
"..foo" must be changed such as to make the extra dots part of the |
| 45 |
file name instead. |
| 46 |
Details: |
| 47 |
The new operations "addExtension" and "replaceExtension" accept only "valid" |
| 48 |
extension forms which is exactly the same as what "fileExtension" returns. |
| 49 |
A valid extension starts with a @.@ followed by one or more characters |
| 50 |
not including @.@ followed by zero or more @.@s in trailing position. |
| 51 |
This change allows extension operations to be principled following |
| 52 |
these laws: |
| 53 |
* flip addExtension file >=> fileExtension == return |
| 54 |
* (fileExtension >=> flip replaceExtension file) file == return file |
| 55 |
* Add splitExtension operation such that: |
| 56 |
* uncurry addExtension . swap >=> splitExtension == return |
| 57 |
* splitExtension >=> uncurry addExtension . swap == return |
| 58 |
* fileExtension == (fmap snd) . splitExtension@ |
| 59 |
* Add 'Path.Posix' and 'Path.Windows' modules for manipulating |
| 60 |
Windows or Posix style paths independently of the current platform. |
| 61 |
* Add 'Lift' instance for 'Path'. |
| 62 |
* `Path.Windows` normalizes path separators throughout path, |
| 63 |
including immediately following drive letter. |
| 64 |
* `Path.Windows` handles UNC (`\\host\share\`) and Unicode (`\\?\C:\`) path |
| 65 |
without breaking the double-separator prefix. |
| 66 |
* Remove support for old GHC version. The oldest supported version |
| 67 |
is 8.2. |
| 68 |
|
| 69 |
0.6.1: |
| 70 |
* Add 'addFileExtension' function and its operator form: (<.>). |
| 71 |
* Derive 'Eq' instance for 'PathException'. |
| 72 |
|
| 73 |
0.6.0: |
| 74 |
|
| 75 |
* Deprecate PathParseException and rename it to PathException |
| 76 |
* Allow 'parent' to work on relative paths as well |
| 77 |
* Deprecate isParentOf and stripDir and rename them to isProperPrefixOf and |
| 78 |
stripProperPrefix respectively. |
| 79 |
* Allow "." as a valid relative dir path with the following rules: |
| 80 |
* "./" </> "./" = "./" |
| 81 |
* "./" </> "x/" = "x/" |
| 82 |
* "x/" </> "./" = "x/" |
| 83 |
* dirname "x" = "./" |
| 84 |
* dirname "/" = "./" |
| 85 |
* dirname "./" = "./" |
| 86 |
* Make dirname return "." instead of "/" (fixes #18). |
| 87 |
* Remove the 'validity' flag. |
| 88 |
* Add synonym for setFileExtension in the form of an operator: (-<.>). |
| 89 |
|
| 90 |
0.5.13: |
| 91 |
* Add QuasiQuoters absdir, reldir, absfile, relfile |
| 92 |
0.5.11: |
| 93 |
* Add replaceExtension and fileExtension |
| 94 |
|
| 95 |
0.5.10: |
| 96 |
* Disallow /. for absolute file |
| 97 |
* Disallow foo/. for relative file |
| 98 |
|
| 99 |
0.5.9: |
| 100 |
* Lifted ~ restriction from parser https://github.com/chrisdone/path/issues/19 |
| 101 |
0.5.8 |
| 102 |
* Add Aeson instances. |
| 103 |
|
| 104 |
0.5.7: |
| 105 |
* Fix haddock problem. |
| 106 |
0.5.6: |
| 107 |
* Reject only .. and . |
| 108 |
0.5.5: |
| 109 |
* Use filepath's isValid function for additional sanity checks |
| 110 |
0.5.4: |
| 111 |
* Disable parsing of path consisting only of "." |
| 112 |
* Add NFData instance for Path |
| 113 |
* Some typo/docs improvements |
| 114 |
* Add standard headers to modules |
| 115 |
0.5.3: |
| 116 |
* Added conversion functions. |
| 117 |
|
| 118 |
0.2.0: |
| 119 |
|
| 120 |
* Rename parentAbs to simply parent. |
| 121 |
* Add dirname. |
| 122 |
|
| 123 |
0.3.0: |
| 124 |
* Removed Generic instance. |
| 125 |
|
| 126 |
0.4.0: |
| 127 |
* Implemented stricter parsing, disabling use of "..". |
| 128 |
* Made stripDir generic over MonadThrow |
| 129 |
|
| 130 |
0.5.0: |
| 131 |
* Fix stripDir p p /= Nothing bug. |
| 132 |
|
| 133 |
0.5.2: |
| 134 |
* Removed unused DeriveGeneric. |