diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,7 +1,14 @@
+## 3.1.2
+
+* Require unix-compat >= 0.2
+  [#206](https://github.com/kazu-yamamoto/logger/pull/206)
+* Remove Safe if directory >= 1.3.8
+  [#199](https://github.com/kazu-yamamoto/logger/pull/199)
+
 ## 3.1.1
 
 * More time-ordered logging functions
-  [#199](https://github.com/kazu-yamamoto/logger/pull/199
+  [#199](https://github.com/kazu-yamamoto/logger/pull/199)
 
 ## 3.1.0
 
diff --git a/System/Log/FastLogger/File.hs b/System/Log/FastLogger/File.hs
--- a/System/Log/FastLogger/File.hs
+++ b/System/Log/FastLogger/File.hs
@@ -1,4 +1,7 @@
+{-# LANGUAGE CPP #-}
+#if !MIN_VERSION_directory(1,3,8)
 {-# LANGUAGE Safe #-}
+#endif
 
 module System.Log.FastLogger.File
     ( FileLogSpec(..)
diff --git a/fast-logger.cabal b/fast-logger.cabal
--- a/fast-logger.cabal
+++ b/fast-logger.cabal
@@ -1,5 +1,5 @@
 Name:                   fast-logger
-Version:                3.1.1
+Version:                3.1.2
 Author:                 Kazu Yamamoto <kazu@iij.ad.jp>
 Maintainer:             Kazu Yamamoto <kazu@iij.ad.jp>
 License:                BSD3
@@ -36,7 +36,7 @@
                       , filepath
                       , text
                       , unix-time >= 0.4.4
-                      , unix-compat
+                      , unix-compat >= 0.2
   if impl(ghc < 7.8)
       Build-Depends:    bytestring-builder
   if impl(ghc >= 8)
