emanote-1.0.2.0: Emanate a structured view of your plain-text notes
Safe HaskellSafe-Inferred
LanguageHaskell2010

Emanote.Source.Patch

Description

Patch model state depending on file change event.

Synopsis

Documentation

patchModel Source #

Arguments

:: (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.