Skip to content

Commit

Permalink
Add a changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Dec 17, 2024
1 parent eacdee4 commit 2d03f00
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions changelog.d/pr-10646
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
```

0 comments on commit 2d03f00

Please sign in to comment.