diff --git a/Data/Graph/Analysis/Reporting.hs b/Data/Graph/Analysis/Reporting.hs
--- a/Data/Graph/Analysis/Reporting.hs
+++ b/Data/Graph/Analysis/Reporting.hs
@@ -1,3 +1,5 @@
+{-# LANGUAGE CPP #-}
+
 {- |
    Module      : Data.Graph.Analysis.Reporting
    Description : Graphalyze Types and Classes
@@ -29,19 +31,24 @@
       unDotPath
     ) where
 
-import Data.Graph.Inductive(Node)
-import Data.GraphViz
+import           Data.Graph.Inductive              (Node)
+import           Data.GraphViz
 import qualified Data.GraphViz.Attributes.Complete as AC
-import Data.GraphViz.Exception
-import Data.GraphViz.Commands.IO(writeDotFile)
+import           Data.GraphViz.Commands.IO         (writeDotFile)
+import           Data.GraphViz.Exception
 
-import Data.Time(getZonedTime, zonedTimeToLocalTime, formatTime)
-import Control.Exception(SomeException(..), tryJust)
-import System.Directory(createDirectoryIfMissing)
-import System.FilePath(makeRelative)
-import System.FilePath.Posix((</>), (<.>))
-import System.Locale(defaultTimeLocale)
-import Control.Monad(liftM, when)
+import Control.Exception     (SomeException (..), tryJust)
+import Control.Monad         (liftM, when)
+import Data.Time             (formatTime, getZonedTime, zonedTimeToLocalTime)
+import System.Directory      (createDirectoryIfMissing)
+import System.FilePath       (makeRelative)
+import System.FilePath.Posix ((<.>), (</>))
+
+#if MIN_VERSION_time (1,5,0)
+import Data.Time (defaultTimeLocale)
+#else
+import System.Locale (defaultTimeLocale)
+#endif
 
 -- -----------------------------------------------------------------------------
 
diff --git a/Graphalyze.cabal b/Graphalyze.cabal
--- a/Graphalyze.cabal
+++ b/Graphalyze.cabal
@@ -1,5 +1,5 @@
 Name:                Graphalyze
-Version:             0.14.1.0
+Version:             0.14.1.1
 Synopsis:            Graph-Theoretic Analysis library.
 Description:         A library to use graph theory to analyse the relationships
                         inherent in discrete data.
@@ -13,10 +13,18 @@
 Cabal-Version:       >= 1.6
 Build-Type:          Simple
 
+Tested-With:         GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4,
+                     GHC == 7.10.2, GHC == 7.11.*
+
 Source-Repository head
-    Type:         darcs
-    Location:     http://code.haskell.org/Graphalyze
+    Type:         git
+    Location:     git://github.com/ivan-m/Graphalyze.git
 
+Flag old-locale {
+     Description: Use old-locale and time < 1.5
+     Manual:      False
+     Default:     True
+}
 
 Library {
         Build-Depends:   base == 4.*,
@@ -24,16 +32,21 @@
                          containers,
                          directory,
                          filepath,
-                         old-locale,
                          process,
                          random,
-                         time,
                          bktrees >= 0.2 && <0.4,
                          fgl == 5.5.*,
-                         graphviz >= 2999.15 && < 2999.18,
-                         pandoc == 1.12.*,
+                         graphviz >= 2999.15 && < 2999.19,
+                         pandoc >= 1.12 && < 1.16,
                          text
 
+        if flag(old-locale) {
+           Build-Depends: time < 1.5,
+                          old-locale
+        } else {
+           Build-Depends: time == 1.5.*
+        }
+
         Exposed-Modules:     Data.Graph.Analysis
                              Data.Graph.Analysis.Types
                              Data.Graph.Analysis.Utils
@@ -49,5 +62,5 @@
                              Paths_Graphalyze
 
         Ghc-Options:         -Wall
-        Ghc-Prof-Options:    -prof -auto-all
+        Ghc-Prof-Options:    -prof
 }
