trying to fix travis ci.
This commit is contained in:
parent
1545f05d87
commit
9974bcbf79
@ -156,6 +156,7 @@ Executable ghc-modi
|
|||||||
, containers
|
, containers
|
||||||
, directory
|
, directory
|
||||||
, filepath
|
, filepath
|
||||||
|
, old-time
|
||||||
, process
|
, process
|
||||||
, split
|
, split
|
||||||
, time
|
, time
|
||||||
|
@ -26,7 +26,11 @@ import CoreMonad (liftIO)
|
|||||||
import Data.IORef (IORef, newIORef, readIORef, writeIORef)
|
import Data.IORef (IORef, newIORef, readIORef, writeIORef)
|
||||||
import Data.List (isPrefixOf)
|
import Data.List (isPrefixOf)
|
||||||
import Data.Maybe (isJust)
|
import Data.Maybe (isJust)
|
||||||
|
#if __GLASGOW_HASKELL__ <= 704
|
||||||
|
import System.Time (ClockTime)
|
||||||
|
#else
|
||||||
import Data.Time (UTCTime)
|
import Data.Time (UTCTime)
|
||||||
|
#endif
|
||||||
import Data.Typeable (Typeable)
|
import Data.Typeable (Typeable)
|
||||||
import System.Directory (getModificationTime, doesDirectoryExist, getDirectoryContents)
|
import System.Directory (getModificationTime, doesDirectoryExist, getDirectoryContents)
|
||||||
import System.IO (openBinaryFile, IOMode(..))
|
import System.IO (openBinaryFile, IOMode(..))
|
||||||
@ -50,7 +54,11 @@ instance Exception Restart
|
|||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
|
|
||||||
data World = World {
|
data World = World {
|
||||||
|
#if __GLASGOW_HASKELL__ <= 704
|
||||||
|
worldCabalFileModificationTime :: Maybe ClockTime
|
||||||
|
#else
|
||||||
worldCabalFileModificationTime :: Maybe UTCTime
|
worldCabalFileModificationTime :: Maybe UTCTime
|
||||||
|
#endif
|
||||||
} deriving (Show, Eq)
|
} deriving (Show, Eq)
|
||||||
|
|
||||||
getCurrentWorld :: IOish m => GhcModT m World
|
getCurrentWorld :: IOish m => GhcModT m World
|
||||||
|
Loading…
Reference in New Issue
Block a user