diff --git a/dhall-bash.cabal b/dhall-bash.cabal
--- a/dhall-bash.cabal
+++ b/dhall-bash.cabal
@@ -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 ,
diff --git a/exec/Main.hs b/exec/Main.hs
--- a/exec/Main.hs
+++ b/exec/Main.hs
@@ -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
diff --git a/src/Dhall/Bash.hs b/src/Dhall/Bash.hs
--- a/src/Dhall/Bash.hs
+++ b/src/Dhall/Bash.hs
@@ -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))
