summaryrefslogtreecommitdiff
path: root/compiler/utils/Util.lhs
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2014-08-19 06:36:02 -0500
committerAustin Seipp <austin@well-typed.com>2014-08-19 06:36:03 -0500
commit527bcc41630918977c73584d99125ff164400695 (patch)
treede154ca063e2672e432a43a74452b312f2029006 /compiler/utils/Util.lhs
parent2fc22949e30eab9f751be90e788ebb2b56f1b132 (diff)
downloadhaskell-527bcc41630918977c73584d99125ff164400695.tar.gz
build: require GHC 7.6 for bootstrapping
Summary: Per the usual standards, a build of GHC is only compileable by the last two releases (e.g. 7.8 only by 7.4 and 7.6). To make sure we don't get suckered into supporting older compilers, let's remove this support now. Signed-off-by: Austin Seipp <austin@well-typed.com> Test Plan: Try to bootstrap with GHC 7.4, watch it fail. Bootstrap with 7.6 or better, and everything works. Reviewers: hvr Reviewed By: hvr Subscribers: simonmar, ezyang, carter Differential Revision: https://phabricator.haskell.org/D167
Diffstat (limited to 'compiler/utils/Util.lhs')
-rw-r--r--compiler/utils/Util.lhs10
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/utils/Util.lhs b/compiler/utils/Util.lhs
index 2dcc73fd89..dfac0ae020 100644
--- a/compiler/utils/Util.lhs
+++ b/compiler/utils/Util.lhs
@@ -129,10 +129,6 @@ import qualified Data.IntMap as IM
import qualified Data.Set as Set
import Data.Time
-#if __GLASGOW_HASKELL__ < 705
-import Data.Time.Clock.POSIX
-import System.Time
-#endif
infixr 9 `thenCmp`
\end{code}
@@ -954,13 +950,7 @@ doesDirNameExist fpath = case takeDirectory fpath of
-- Backwards compatibility definition of getModificationTime
getModificationUTCTime :: FilePath -> IO UTCTime
-#if __GLASGOW_HASKELL__ < 705
-getModificationUTCTime f = do
- TOD secs _ <- getModificationTime f
- return $ posixSecondsToUTCTime (realToFrac secs)
-#else
getModificationUTCTime = getModificationTime
-#endif
-- --------------------------------------------------------------
-- check existence & modification time at the same time