dhall-bash 1.0.6 → 1.0.7
raw patch · 3 files changed
+7/−7 lines, 3 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
- exec/Main.hs +2/−2
- src/Dhall/Bash.hs +3/−3
dhall-bash.cabal view
@@ -1,5 +1,5 @@ Name: dhall-bash-Version: 1.0.6+Version: 1.0.7 Cabal-Version: >=1.8.0.2 Build-Type: Simple Tested-With: GHC == 7.10.2, GHC == 8.0.1@@ -31,7 +31,7 @@ base >= 4.8.0.0 && < 5 , bytestring < 0.11, containers < 0.6 ,- dhall >= 1.0.1 && < 1.9 ,+ dhall >= 1.9.0 && < 1.10, neat-interpolation < 0.4 , shell-escape < 0.3 , text-format < 0.4 ,
exec/Main.hs view
@@ -34,11 +34,11 @@ } deriving (Generic, ParseRecord) main :: IO ()-main = handle (do+main = do GHC.IO.Encoding.setLocaleEncoding GHC.IO.Encoding.utf8 Options {..} <- Options.Generic.getRecord "Compile Dhall to Bash" - (if unHelpful explain then Dhall.detailed else id) (do+ (if unHelpful explain then Dhall.detailed else id) (handle (do inText <- Data.Text.Lazy.IO.getContents expr <- case Dhall.Parser.exprFromText (Directed "(stdin)" 0 0 0 0) inText of
src/Dhall/Bash.hs view
@@ -105,7 +105,7 @@ import Data.ByteString import Data.Monoid ((<>)) import Data.Typeable (Typeable)-import Dhall.Core (Expr(..))+import Dhall.Core (Expr(..), Chunks(..)) import Dhall.TypeCheck import qualified Data.Foldable@@ -294,8 +294,8 @@ go (NaturalLit a) = do go (IntegerLit (fromIntegral a)) go (IntegerLit a) = do- go (TextLit (Data.Text.Buildable.build a))- go (TextLit a) = do+ go (TextLit (Chunks [] (Data.Text.Buildable.build a)))+ go (TextLit (Chunks [] a)) = do let text = Data.Text.Lazy.Builder.toLazyText a let bytes = Data.Text.Encoding.encodeUtf8 (Data.Text.Lazy.toStrict text) return (Text.ShellEscape.bytes (Text.ShellEscape.bash bytes))