diff --git a/System/Console/Terminfo.hs b/System/Console/Terminfo.hs
--- a/System/Console/Terminfo.hs
+++ b/System/Console/Terminfo.hs
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Safe #-}
+#endif
 {- |
 Maintainer  : judah.jacobson@gmail.com
 Stability   : experimental
diff --git a/System/Console/Terminfo/Base.hs b/System/Console/Terminfo/Base.hs
--- a/System/Console/Terminfo/Base.hs
+++ b/System/Console/Terminfo/Base.hs
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Trustworthy #-}
+#endif
 -- |
 -- Maintainer  : judah.jacobson@gmail.com
 -- Stability   : experimental
diff --git a/System/Console/Terminfo/Color.hs b/System/Console/Terminfo/Color.hs
--- a/System/Console/Terminfo/Color.hs
+++ b/System/Console/Terminfo/Color.hs
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Safe #-}
+#endif
 -- |
 -- Maintainer  : judah.jacobson@gmail.com
 -- Stability   : experimental
diff --git a/System/Console/Terminfo/Cursor.hs b/System/Console/Terminfo/Cursor.hs
--- a/System/Console/Terminfo/Cursor.hs
+++ b/System/Console/Terminfo/Cursor.hs
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Safe #-}
+#endif
 -- |
 -- Maintainer  : judah.jacobson@gmail.com
 -- Stability   : experimental
diff --git a/System/Console/Terminfo/Edit.hs b/System/Console/Terminfo/Edit.hs
--- a/System/Console/Terminfo/Edit.hs
+++ b/System/Console/Terminfo/Edit.hs
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Safe #-}
+#endif
 -- |
 -- Maintainer  : judah.jacobson@gmail.com
 -- Stability   : experimental
diff --git a/System/Console/Terminfo/Effects.hs b/System/Console/Terminfo/Effects.hs
--- a/System/Console/Terminfo/Effects.hs
+++ b/System/Console/Terminfo/Effects.hs
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Safe #-}
+#endif
 -- |
 -- Maintainer  : judah.jacobson@gmail.com
 -- Stability   : experimental
diff --git a/System/Console/Terminfo/Keys.hs b/System/Console/Terminfo/Keys.hs
--- a/System/Console/Terminfo/Keys.hs
+++ b/System/Console/Terminfo/Keys.hs
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 701
+{-# LANGUAGE Safe #-}
+#endif
 -- |
 -- Maintainer  : judah.jacobson@gmail.com
 -- Stability   : experimental
diff --git a/terminfo.cabal b/terminfo.cabal
--- a/terminfo.cabal
+++ b/terminfo.cabal
@@ -1,6 +1,6 @@
 Name:           terminfo
 Cabal-Version:  >=1.4
-Version:        0.3.2
+Version:        0.3.2.1
 Category:       User Interfaces
 License:        BSD3
 License-File:   LICENSE
@@ -22,8 +22,8 @@
 Library
     Build-depends:  base >= 1.0 && < 5,
                     extensible-exceptions >= 0.1.1.0 && < 0.2
-    Extensions:     ForeignFunctionInterface, DeriveDataTypeable, EmptyDataDecls,
-                    ScopedTypeVariables, FlexibleInstances
+    Extensions:     CPP, ForeignFunctionInterface, DeriveDataTypeable,
+                    EmptyDataDecls, ScopedTypeVariables, FlexibleInstances
     ghc-options:    -Wall
     Exposed-Modules:
                     System.Console.Terminfo
