Closed
Description
aside: thanks for for-directory-tree
, I'm very excited to use it :D
$ echo '{ a = "hello" }' | dhall to-directory-tree --output issue
$ cat issue/a
hello
$ echo '{ `a/b` = "hello" }' | dhall to-directory-tree --output issue
dhall: issue/a/b: openFile: inappropriate type (Not a directory)
If I mkdir -p issue/a
first it works, but that's obviously inconvenient.
While I'm at it, my initial assumption was that to-directory-tree
would take a map, instead of a record literal. That seems like it could be more flexible (because the keys can be programmatically generated too), and would also remove the need to support Optional Text
(you could just filter out the unwanted items from the map). Should I make a separate issue for that, or does it intentionally not support maps?
Metadata
Metadata
Assignees
Labels
No labels