Add modtime to on-disk and memory cache

This commit is contained in:
Daniel Gröber
2015-11-18 20:58:29 +01:00
parent 758efc0be7
commit 82f33cdbd7
2 changed files with 12 additions and 6 deletions

View File

@@ -2,9 +2,10 @@ module Language.Haskell.GhcMod.Caching.Types where
import Utils
import Data.Label
import Data.Time (UTCTime)
import Distribution.Helper
type CacheContents d a = Maybe ([FilePath], d, a)
type CacheContents d a = Maybe (UTCTime, [FilePath], d, a)
type CacheLens s d a = s :-> CacheContents d a
data Cached m s d a = Cached {