-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eacdee4
commit ca61a07
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
synopsis: Deduplicate path separator duplicates | ||
packages: [cabal-install-solver] | ||
prs: 10646 | ||
issues: 10645 | ||
--- | ||
|
||
The "using configuration from" message no longer has duplicates on Windows when | ||
the `cabal.project` uses forward slashes for its imports but the message reports | ||
imports with backslashes. | ||
|
||
```diff | ||
$ cat cabal.project | ||
import: dir-a/b.config | ||
|
||
$ cabal build all --dry-run | ||
... | ||
When using configuration from: | ||
- - dir-a/b.config | ||
- dir-a\b.config | ||
- cabal.project | ||
``` | ||
|
||
## Ord ProjectConfigPath Instance Changes | ||
|
||
For comparison purposes, path separators are normalized to the @buildOS@ | ||
platform's path separator. | ||
|
||
```haskell | ||
-- >>> let abFwd = ProjectConfigPath $ "a/b.config" :| [] | ||
-- >>> let abBwd = ProjectConfigPath $ "a\\b.config" :| [] | ||
-- >>> compare abFwd abBwd | ||
-- EQ | ||
``` |