shaker-0.5.1: simple and interactive command-line build tool

Shaker.ModuleData

Contents

Synopsis

Read and write module data

getCorrespondingModuleDataFile :: FilePath -> Shaker IO FilePathSource

Get the corresponding mdata file from the given source file

writeModuleData :: ModuleData -> Shaker IO ()Source

Write given moduleData in dist directory

parseAllModuleData :: Shaker IO [ModuleData]Source

Parse module data from all haskell sources.

parseModuleData :: FilePath -> Shaker IO (Maybe ModuleData)Source

Read Module data from the given haskell source. It tries to read serialized information beforehand.

parseModuleDataIfExist :: FilePath -> Shaker IO (Maybe ModuleData)Source

Read Module data from the serialized data. It returns Nothing if the serialized data is absent or out-of-date.

Module data util methods

filterModulesWithPattern :: [ModuleData] -> String -> [ModuleData]Source

Include only module matching the given pattern