Safe Haskell | None |
---|
- 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]
- 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
- data GetBugById = GetBugById BugId
- data PutBug = PutBug Bug
- data AllBugIds = AllBugIds
- data NewMilestone = NewMilestone
- data GetMilestones = GetMilestones
- data GetMilestoneTitle = GetMilestoneTitle MilestoneId
- data SetMilestones = SetMilestones [Milestone]
- data BugsForMilestones = BugsForMilestones [MilestoneId]
- data MilestoneCompletion = MilestoneCompletion MilestoneId
Documentation
BugsState
stores all the bugs
BugsState | |
|
initialBugsState :: BugsStateSource
initial BugsState
putBug :: Bug -> Update BugsState ()Source
store Bugs
in the state. Will overwrite an existing entry with the same BugId
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
data GetBugById Source
data NewMilestone Source
data GetMilestones Source
data GetMilestoneTitle Source
data SetMilestones Source
data BugsForMilestones Source