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.21
+Version: 1.0.22
 Cabal-Version: >=1.8.0.2
 Build-Type: Simple
 Tested-With: GHC == 7.10.3, GHC == 8.4.3, GHC == 8.6.1
@@ -31,7 +31,7 @@
         base                      >= 4.8.0.0 && < 5   ,
         bytestring                              < 0.11,
         containers                              < 0.7 ,
-        dhall                     >= 1.22.0  && < 1.25,
+        dhall                     >= 1.25.0  && < 1.26,
         neat-interpolation                      < 0.4 ,
         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
@@ -317,7 +317,6 @@
     go e@(ListIndexed     ) = Left (UnsupportedStatement e)
     go e@(ListReverse     ) = Left (UnsupportedStatement e)
     go e@(Optional        ) = Left (UnsupportedStatement e)
-    go e@(OptionalLit   {}) = Left (UnsupportedStatement e)
     go e@(None            ) = Left (UnsupportedStatement e)
     go e@(OptionalFold    ) = Left (UnsupportedStatement e)
     go e@(OptionalBuild   ) = Left (UnsupportedStatement e)
@@ -328,6 +327,7 @@
     go e@(CombineTypes  {}) = Left (UnsupportedStatement e)
     go e@(Prefer        {}) = Left (UnsupportedStatement e)
     go e@(Merge         {}) = Left (UnsupportedStatement e)
+    go e@(ToMap         {}) = Left (UnsupportedStatement e)
     go e@(Field         {}) = Left (UnsupportedStatement e)
     go e@(Project       {}) = Left (UnsupportedStatement e)
     go e@(ImportAlt     {}) = Left (UnsupportedStatement e)
