Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Patch model state depending on file change event.
Synopsis
- patchModel :: (MonadIO m, MonadLogger m, MonadLoggerIO m) => LocLayers -> (Note -> Note) -> IndexVar -> FileType SourceExt -> FilePath -> FileAction (NonEmpty (Loc, FilePath)) -> m (ModelEma -> ModelEma)
- filePatterns :: [(FileType SourceExt, FilePattern)]
- ignorePatterns :: [FilePattern]
Documentation
:: (MonadIO m, MonadLogger m, MonadLoggerIO m) | |
=> LocLayers | |
-> (Note -> Note) | |
-> IndexVar | |
-> FileType SourceExt | Type of the file being changed |
-> FilePath | Path to the file being changed |
-> FileAction (NonEmpty (Loc, FilePath)) | Specific change to the file, along with its paths from other "layers" |
-> m (ModelEma -> ModelEma) |
Map a filesystem change to the corresponding model change.
filePatterns :: [(FileType SourceExt, FilePattern)] Source #
ignorePatterns :: [FilePattern] Source #