packages feed

dhall-text-shell 0.2.0.0 → 0.2.1.0

raw patch · 3 files changed

+19/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,6 +1,19 @@ Changelog ========= +Version 0.2.1.0+---------------++*October 4, 2026*++<https://github.com/mstksg/dhall-text-shell/releases/tag/v0.2.1.0>++*   Fix build against recent `dhall` releases, where+    `Dhall.DirectoryTree.toDirectoryTree` gained a leading `Bool` argument+    for whether to allow path separators in file names.  Added a matching+    `--allow-path-separators` flag (off by default, mirroring `dhall+    to-directory-tree`).+ Version 0.2.0.0 --------------- 
dhall-text-shell.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.4 name:                dhall-text-shell-version:             0.2.0.0+version:             0.2.1.0 synopsis:            Render dhall text with shell commands as function arguments description:     `dhall text` and `dhall to-directory-tree` require the expression (or file
src/Dhall/TextShell.hs view
@@ -45,6 +45,7 @@     { file    :: Input     , output  :: Output     , asDirectoryTree :: Bool+    , allowPathSeparators :: Bool     , argCmds :: [String]     } @@ -62,6 +63,7 @@       Options   <$> parseFile                 <*> parseOutput                 <*> parseAsDirectoryTree+                <*> parseAllowPathSeparators                 <*> Options.Applicative.many parseArgCmd     parseFile = fmap f (optional p)       where@@ -87,6 +89,8 @@                 )     parseAsDirectoryTree = switch "directory-tree"         "Create a directory tree a la dhall to-directory-tree instead of a single file"+    parseAllowPathSeparators = switch "allow-path-separators"+        "Whether to allow path separators in file names"     parseArgCmd = Options.Applicative.strOption             (   Options.Applicative.long "argCmd"             <>  Options.Applicative.help "Use shell command to supply as `Text -> Text` argument"@@ -179,7 +183,7 @@           True -> case output of             StandardOutput -> Control.Exception.throwIO  $               System.IO.Error.userError "Usage of --directory-tree requires --output to be specified"-            OutputFile file_ -> DirectoryTree.toDirectoryTree file_ res+            OutputFile file_ -> DirectoryTree.toDirectoryTree allowPathSeparators file_ res  -- | Copy as much as possible the setup in "Dhall.Main".  If that module -- changes, this should update as well.