dhall-bash 1.0.32 → 1.0.33
raw patch · 2 files changed
+4/−3 lines, 2 filesdep ~dhallPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: dhall
API changes (from Hackage documentation)
Files
- dhall-bash.cabal +2/−2
- src/Dhall/Bash.hs +2/−1
dhall-bash.cabal view
@@ -1,5 +1,5 @@ Name: dhall-bash-Version: 1.0.32+Version: 1.0.33 Cabal-Version: >=1.10 Build-Type: Simple Tested-With: GHC == 8.4.3, GHC == 8.6.1@@ -31,7 +31,7 @@ base >= 4.11.0.0 && < 5 , bytestring < 0.11, containers < 0.7 ,- dhall >= 1.34.0 && < 1.35,+ dhall >= 1.34.0 && < 1.36, neat-interpolation < 0.6 , shell-escape < 0.3 , text >= 0.2 && < 1.3
src/Dhall/Bash.hs view
@@ -1,6 +1,7 @@ {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-}+{-# LANGUAGE ViewPatterns #-} {-| This library exports two utilities for compiling Dhall expressions to Bash: @@ -360,7 +361,7 @@ go (TextLit (Chunks [] a)) = do let bytes = Data.Text.Encoding.encodeUtf8 a return (Text.ShellEscape.bytes (Text.ShellEscape.bash bytes))- go e@(Field (Union m) k) =+ go e@(Field (Union m) (Dhall.Core.fieldSelectionLabel -> k)) = case Dhall.Map.lookup k m of Just Nothing -> go (TextLit (Chunks [] k)) _ -> Left (UnsupportedExpression e)