Safe Haskell | None |
---|
- data Partitioned a
- data Groups
- newtype GroupRecord = GR {
- unGR :: Map SourceRecord (Set FileRecord)
- data SourceRecord = SR {}
- data FileRecord = FR {}
- these :: Lens' (Partitioned a) a
- those :: Lens' (Partitioned a) a
- groups :: Lens' Groups (Map String GroupRecord)
- open :: Settings () -> IO (Partitioned Groups)
- commit :: Partitioned Groups -> IO ()
- close :: Partitioned Groups -> IO ()
- fromScript :: Free (Term Annotate Sources) a -> Groups
- diff :: Eq b => (a -> [b]) -> a -> a -> [b]
- files :: Groups -> [FilePath]
- sources :: Groups -> [FilePath]
- who :: Maybe (Either String Int) -> String
Documentation
data Partitioned a Source
All groups data
A mapping from group names to GroupRecord
s
newtype GroupRecord Source
Group data record
A mapping from Source
data to set of FileRecord
s
GR | |
|
Eq GroupRecord | |
Show GroupRecord | |
Typeable GroupRecord | |
Monoid GroupRecord | |
SafeCopy GroupRecord | |
ToJSON GroupRecord | |
Applicative f => Ixed f GroupRecord |
data SourceRecord Source
Source data record
SR | |
|
Eq SourceRecord | Only destination filepath matters for equality |
Ord SourceRecord | Only destination filepath matters for ordering |
Read SourceRecord | |
Show SourceRecord | |
SafeCopy SourceRecord | |
ToJSON SourceRecord | |
Migrate SourceRecord |
data FileRecord Source
File data record
Eq FileRecord | Only destination filepath matters for equality |
Ord FileRecord | Only destination filepath matters for ordering |
Show FileRecord | |
SafeCopy FileRecord | |
ToJSON FileRecord | |
Migrate FileRecord |
these :: Lens' (Partitioned a) aSource
Groups targeted by script
those :: Lens' (Partitioned a) aSource
All other groups
open :: Settings () -> IO (Partitioned Groups)Source
Open groups data from disk
Searches
path for groups data. Starts empty
if nothing is found
appData
/groups
commit :: Partitioned Groups -> IO ()Source
close :: Partitioned Groups -> IO ()Source
Save groups data to disk