Safe Haskell | None |
---|
Clckwrks.Bugs.Acid
- data BugsState_0 = BugsState_0 {
- nextBugId_0 :: BugId
- bugs_0 :: IxSet Bug
- data BugsState = BugsState {}
- initialBugsState :: BugsState
- genBugId :: Update BugsState BugId
- getBugById :: BugId -> Query BugsState (Maybe Bug)
- putBug :: Bug -> Update BugsState ()
- allBugIds :: Query BugsState [BugId]
- data SortBugsBy = SortByBugId
- data SortOrder a
- allBugMeta :: SortOrder SortBugsBy -> Query BugsState [BugMeta]
- newMilestone :: Update BugsState MilestoneId
- getMilestones :: Query BugsState [Milestone]
- getMilestoneIds :: Query BugsState [MilestoneId]
- getMilestoneTitle :: MilestoneId -> Query BugsState (Maybe Text)
- setMilestones :: [Milestone] -> Update BugsState ()
- bugsForMilestones :: [MilestoneId] -> Query BugsState (IxSet Bug)
- milestoneCompletion :: MilestoneId -> Query BugsState (Maybe Rational)
- data GenBugId = GenBugId
- newtype GetBugById = GetBugById BugId
- newtype PutBug = PutBug Bug
- data AllBugIds = AllBugIds
- newtype AllBugMeta = AllBugMeta (SortOrder SortBugsBy)
- data NewMilestone = NewMilestone
- data GetMilestones = GetMilestones
- newtype GetMilestoneTitle = GetMilestoneTitle MilestoneId
- newtype SetMilestones = SetMilestones [Milestone]
- newtype BugsForMilestones = BugsForMilestones [MilestoneId]
- newtype MilestoneCompletion = MilestoneCompletion MilestoneId
Documentation
data BugsState_0 Source
Constructors
BugsState_0 | |
Fields
|
Instances
BugsState
stores all the bugs
Constructors
BugsState | |
Fields
|
initialBugsState :: BugsStateSource
initial BugsState
putBug :: Bug -> Update BugsState ()Source
store Bugs
in the state. Will overwrite an existing entry with the same BugId
data SortBugsBy Source
Constructors
SortByBugId |
newMilestone :: Update BugsState MilestoneIdSource
add a new, empty Milestone
to the database and return the MilestoneId
getMilestones :: Query BugsState [Milestone]Source
get the milestones
getMilestoneIds :: Query BugsState [MilestoneId]Source
get all the MilestoneId
s
getMilestoneTitle :: MilestoneId -> Query BugsState (Maybe Text)Source
get the milestoneTitle
for a MilestoneId
setMilestones :: [Milestone] -> Update BugsState ()Source
get the milestones sorted by target date
bugsForMilestones :: [MilestoneId] -> Query BugsState (IxSet Bug)Source
get all the Bug
s with one of the target MilestoneId
s
milestoneCompletion :: MilestoneId -> Query BugsState (Maybe Rational)Source
return the percentage completion of a MilestoneId
Will return Nothing
if no bugs were found for the MilestoneId
Constructors
GenBugId |
newtype GetBugById Source
Constructors
GetBugById BugId |
Constructors
AllBugIds |
newtype AllBugMeta Source
Constructors
AllBugMeta (SortOrder SortBugsBy) |
data NewMilestone Source
Constructors
NewMilestone |
data GetMilestones Source
Constructors
GetMilestones |
newtype GetMilestoneTitle Source
Constructors
GetMilestoneTitle MilestoneId |
newtype SetMilestones Source
Constructors
SetMilestones [Milestone] |
newtype BugsForMilestones Source
Constructors
BugsForMilestones [MilestoneId] |