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

Treat slashes in map keys as instruction to create directories in to-directory-tree mode #2460

Open
nikita-volkov opened this issue Sep 18, 2022 · 1 comment · May be fixed by #2448
Open

Comments

@nikita-volkov
Copy link

Currently compiling the following expression:

[ { mapKey = "A/B", mapValue = "" } ]

results in the following error

You tried to translate the following expression to a directory tree:

↳ [ { mapKey = "A/B", mapValue = "" } ]

... which is not an expression that can be translated to a directory tree.

This makes it impossible to generate dynamically structured directory trees.

@nikita-volkov nikita-volkov changed the title Treat slashes as map keys as instruction to create directories in to-directory-tree mode Treat slashes in map keys as instruction to create directories in to-directory-tree mode Sep 18, 2022
@mmhat
Copy link
Collaborator

mmhat commented Oct 6, 2022

I think this is possible with --allow-path-separators introduced in #2437.

(@Gabriella439 @sjakobi This issue should be moved to the dhall-haskell project. Either I don't have the permissions to do that or I fail to see how.)

@SiriusStarr SiriusStarr transferred this issue from dhall-lang/dhall-lang Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants