haskell / haskell/cabal

file+noindex, absolute paths and Windows

Open
#7,065 0 comments 0 reactions 0 assignees View on GitHub
platform: windows type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

`file://C:\foo\repo` is not a valid URI.

EDIT:

```haskell
Prelude Network.URI> parseURI "file+noindex:///?/hello/world/"
Just file+noindex:///?/hello/world/

Prelude System.FilePath.Windows> normalise "//?/hello/world/"
"\\\\?\\hello\\world\\"
```

seems to work. Have to be more careful in encoding / decoding paths for `file+noindex` URIs, so maybe then it will work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.