-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to OsPath #445
Comments
Converting between
To maintain backward compatibility, I will create a new type |
I do not think we should worry too much about this. We don't have that many clients, and I'm pretty close to releasing a change that will break essentially the entire package 😅 I'm happy to keep releasing major versions as we break things |
But keep in mind that using the new Pepe Iborra suggested creating a package So, I believe we can create |
Hmm, could we do a CPP dance to have a |
We can, and I think it won't be too hard. But clients will see different API when using different versions of GHC, that might be confusing in my mind. After all, |
Ugh, good point. We could have a single |
I'm not sure what However... do mind that the point of OsPath is to avoid encoding/decoding at the FFI boundary... so you shoudn't convert to or from String yourself in the internal API. That would signal a problem with the approach. |
As suggested by @pepeiborra, we have a better alternative to
FilePath
now. See: https://hasufell.github.io/posts/2022-06-29-fixing-haskell-filepaths.htmlAnd changing the implementation of
NormalizedFilePath
might greatly impact HLS performance, according to the existing comment.lsp/lsp-types/src/Language/LSP/Types/Uri.hs
Lines 158 to 160 in a41954e
I'm planning to:
OsPath
in a forkThe text was updated successfully, but these errors were encountered: