diff --git a/Data/Text/IO/ExplicitIOModes.hs b/Data/Text/IO/ExplicitIOModes.hs
--- a/Data/Text/IO/ExplicitIOModes.hs
+++ b/Data/Text/IO/ExplicitIOModes.hs
@@ -1,4 +1,8 @@
-{-# LANGUAGE UnicodeSyntax, NoImplicitPrelude #-}
+{-# LANGUAGE CPP, UnicodeSyntax, NoImplicitPrelude #-}
+
+#if __GLASGOW_HASKELL__ >= 704
+{-# LANGUAGE Trustworthy #-}
+#endif
 
 -------------------------------------------------------------------------------
 -- |
diff --git a/Data/Text/Lazy/IO/ExplicitIOModes.hs b/Data/Text/Lazy/IO/ExplicitIOModes.hs
--- a/Data/Text/Lazy/IO/ExplicitIOModes.hs
+++ b/Data/Text/Lazy/IO/ExplicitIOModes.hs
@@ -1,4 +1,8 @@
-{-# LANGUAGE UnicodeSyntax, NoImplicitPrelude #-}
+{-# LANGUAGE CPP, UnicodeSyntax, NoImplicitPrelude #-}
+
+#if __GLASGOW_HASKELL__ >= 704
+{-# LANGUAGE Trustworthy #-}
+#endif
 
 -------------------------------------------------------------------------------
 -- |
diff --git a/explicit-iomodes-text.cabal b/explicit-iomodes-text.cabal
--- a/explicit-iomodes-text.cabal
+++ b/explicit-iomodes-text.cabal
@@ -1,5 +1,5 @@
 name:          explicit-iomodes-text
-version:       0.1.0.6
+version:       0.1.0.7
 cabal-version: >=1.6
 build-type:    Simple
 license:       BSD3
@@ -20,7 +20,7 @@
 
 Library
   GHC-Options: -Wall
-  build-depends: base             >= 4   && < 4.5
+  build-depends: base             >= 4   && < 4.6
                , text             >= 0.7 && < 0.12
                , explicit-iomodes >= 0.4 && < 0.7
   exposed-modules: Data.Text.IO.ExplicitIOModes
