forked from srid/haskell-flake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't rely on string context for package source
Before this commit, the type of a package source (haskell-source-type) depended on string contexts in its `check` function. However, string contexts do not work well to represent a path to a package source. For instance, "hello ./subdirectory" would have a string context, but is obviously not a valid path. Furthermore, a `nix` bug (NixOS/nix#8428) related to string contexts triggers an issue where setting the project root causes a type error with haskell-source-type (srid#169). This commit replaces haskell-source-type with `with type; either path str` and instances of `isPathUnderNixStore` with `lib.types.path.check` to avoid using string contexts.
- Loading branch information
Showing
3 changed files
with
4 additions
and
22 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
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
This file was deleted.
Oops, something went wrong.