1module Text.Hakyll.Internal.Cache
6import Control.Monad.Reader (liftIO)
7import Text.Hakyll.Hakyll (Hakyll)
10storeInCache :: (Show a) => a -> FilePath -> Hakyll ()
11storeInCache value path = do
12 cachePath <- toCache path
13 makeDirectories cachePath
14 liftIO $ writeFile cachePath (show value)
16getFromCache :: (Read a) => FilePath -> Hakyll (Maybe a)
18 cachePath <- toCache path
19 valid <- isMoreRecent cachePath [path]
20 if valid then liftIO (getFromCache' cachePath) >>= return . Just
23 getFromCache' cachePath = do c <- readFile cachePath
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list