packages feed

dhall-bash 1.0.37 → 1.0.38

raw patch · 2 files changed

+15/−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 view
@@ -1,8 +1,7 @@ Name: dhall-bash-Version: 1.0.37+Version: 1.0.38 Cabal-Version: >=1.10 Build-Type: Simple-Tested-With: GHC == 8.4.3, GHC == 8.6.1 License: BSD3 License-File: LICENSE Copyright: 2017 Gabriel Gonzalez@@ -31,7 +30,7 @@         base                      >= 4.11.0.0 && < 5   ,         bytestring                               < 0.12,         containers                               < 0.7 ,-        dhall                     >= 1.36.0   && < 1.40,+        dhall                     >= 1.40.0   && < 1.41,         neat-interpolation                       < 0.6 ,         shell-escape                             < 0.3 ,         text                      >= 0.2      && < 1.3
src/Dhall/Bash.hs view
@@ -113,6 +113,7 @@ import qualified Data.Text.Encoding import qualified Dhall.Core import qualified Dhall.Map+import qualified Dhall.Pretty import qualified NeatInterpolation import qualified Text.ShellEscape @@ -250,6 +251,9 @@         return bytes     go (Some b) = go b     go (App None _) = return ("unset " <> var)+    go e+        | Just text <- Dhall.Pretty.temporalToText e =+            go (TextLit (Chunks [] text))     go (RecordLit a) = do         let process (k, v) = do                 v' <- dhallToExpression v@@ -311,6 +315,12 @@     go e@(TextAppend       {}) = Left (UnsupportedStatement e)     go e@(TextReplace      {}) = Left (UnsupportedStatement e)     go e@(TextShow         {}) = Left (UnsupportedStatement e)+    go e@(Date               ) = Left (UnsupportedStatement e)+    go e@(DateLiteral      {}) = Left (UnsupportedStatement e)+    go e@(Time               ) = Left (UnsupportedStatement e)+    go e@(TimeLiteral      {}) = Left (UnsupportedStatement e)+    go e@(TimeZone           ) = Left (UnsupportedStatement e)+    go e@(TimeZoneLiteral  {}) = Left (UnsupportedStatement e)     go e@(List               ) = Left (UnsupportedStatement e)     go e@(ListAppend       {}) = Left (UnsupportedStatement e)     go e@(ListBuild          ) = Left (UnsupportedStatement e)@@ -366,4 +376,7 @@         case Dhall.Map.lookup k m of             Just Nothing -> go (TextLit (Chunks [] k))             _            -> Left (UnsupportedExpression e)+    go e+        | Just text <- Dhall.Pretty.temporalToText e =+            go (TextLit (Chunks [] text))     go e = Left (UnsupportedExpression e)