Skip to content
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

Package description: files are not symbolic paths, but are globs #10815

Open
mpickering opened this issue Mar 5, 2025 · 0 comments
Open

Package description: files are not symbolic paths, but are globs #10815

mpickering opened this issue Mar 5, 2025 · 0 comments

Comments

@mpickering
Copy link
Collaborator

If you see the PackageDescription type then:

    dataFiles :: [RelativePath DataDir File]
  -- ^ data file globs, relative to data directory
  , dataDir :: SymbolicPath Pkg (Dir DataDir)
  -- ^ data directory (may be absolute, or relative to package)
  , extraSrcFiles :: [RelativePath Pkg File]
  , extraTmpFiles :: [RelativePath Pkg File]
  , extraDocFiles :: [RelativePath Pkg File]
  , extraFiles :: [RelativePath Pkg File]

However, these paths need to be interpreted via the glob engine before they are turned into FilePaths. It would be good to distinguish this in the types, since filepaths which contain globs are not valid paths (on windows).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant