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.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
diff --git a/src/Dhall/Bash.hs b/src/Dhall/Bash.hs
--- a/src/Dhall/Bash.hs
+++ b/src/Dhall/Bash.hs
@@ -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)
