Remove unused LogInterval type.
[?]
Apr 23, 2015, 4:44 AM
OV5AKJHA773ETIJPTMQ7K64U7BRQE34OXJ6FJNH6TZG22WS5QTIACDependencies
- [2]
SCXG6TJWMake log reduction safer in presence of overlapping events. - [3]
FD7SV5I6Fix handling of event_t columns. - [4]
N4NDAZYTInitial implementation of payouts. - [5]
RSEB2NFGReplacing Snap with Scotty. - [6]
A6HKMINBAttempting to improve JSON handling. - [7]
TJEUE7TYAdded OverloadedStrings to eliminate Text fiddling. - [8]
TLQ72DSJLenses, sqlite-simple - [9]
7KZP4RHZSwitch from Data.Time to Data.Thyme - [10]
GKGVYBZGAdded JSON serialization to TimeLog - [11]
7DBNV3GVInitial, stack-based impl of time log event reduction. - [12]
P6NR2CGXBeginning of implementation of depreciation. - [13]
64C6AWH6Rename Ananke -> Quixotic, project reboot. - [14]
OBFPJS2GProject successfully builds and tests under nix. - [15]
2OIPAQCBMerge branch 'master' of github.com:nuttycom/ananke - [16]
NVOCQVASInitial failing tests. - [17]
Y35QCWYWMinor improvement in WorkIndex type to eliminate duplicated information. - [18]
NMWWP4ZNTrying out Hspec - [19]
2KZPOGRBOnce you get Haskell to compile, the tests pass! - [20]
7XN3I3QJAdd 'loggedIntervals' endpoint. - [21]
SLL7262CMake depreciation functions more flexible. - [22]
A2J7B4SCInitial impl of depreciation function. - [23]
5DRIWGLUImproving TimeLog specs - [24]
JV3UEPNCFix Aeson constructors.
Change contents
- edit in lib/Quixotic/TimeLog.hs at line 7
, LogInterval(..) - edit in lib/Quixotic/TimeLog.hs at line 93[3.5971]→[3.824:941](∅→∅),[3.2286]→[3.824:941](∅→∅),[3.292]→[3.2286:2287](∅→∅),[3.941]→[3.2286:2287](∅→∅),[3.2286]→[3.2286:2287](∅→∅)
data LogInterval = LogInterval{ intervalBtcAddr :: BtcAddr, workInterval :: Interval} deriving (Show, Eq) - edit in lib/Quixotic/TimeLog.hs at line 175
- replacement in test/Quixotic/TimeLogSpec.hs at line 45
let testAddrs = L.fromList $ catMaybeslet testAddrs = catMaybes - replacement in test/Quixotic/TimeLogSpec.hs at line 50
starts = L.fromList $ toThyme <$> catMaybesstarts = toThyme <$> catMaybes - replacement in test/Quixotic/TimeLogSpec.hs at line 54
ends = L.fromList $ toThyme <$> catMaybesends = toThyme <$> catMaybes - replacement in test/Quixotic/TimeLogSpec.hs at line 58
testIntervals :: NonEmpty LogIntervaltestIntervals :: [(BtcAddr, Interval)] - replacement in test/Quixotic/TimeLogSpec.hs at line 61
(start', end') <- L.zip starts endspure $ LogInterval addr (I.interval start' end')(start', end') <- ClassyPrelude.zip starts endspure $ (addr, I.interval start' end') - replacement in test/Quixotic/TimeLogSpec.hs at line 64
testLogEntries :: NonEmpty LogEntrytestLogEntries :: [LogEntry] - replacement in test/Quixotic/TimeLogSpec.hs at line 66
(LogInterval addr (Interval start' end')) <- testIntervalsL.fromList [ LogEntry addr (WorkEvent StartWork start' Nothing), LogEntry addr (WorkEvent StopWork end' Nothing) ](addr, Interval start' end') <- testIntervalsLogEntry addr <$> [WorkEvent StartWork start' Nothing, WorkEvent StopWork end' Nothing] - replacement in test/Quixotic/TimeLogSpec.hs at line 69[3.3174]→[2.1752:1865](∅→∅),[2.1865]→[3.3174:3206](∅→∅),[3.3174]→[3.3174:3206](∅→∅),[3.3206]→[2.1866:1935](∅→∅)
expected' = fromListWith (<>) . L.toList $ (intervalBtcAddr &&& pure . workInterval) <$> testIntervalsexpected :: WorkIndexexpected = WorkIndex $ fmap (L.reverse . L.sort) expected'expected' = fromListWith (<>) $ fmap (second pure) testIntervalsexpected = WorkIndex $ fmap (L.reverse . L.sort) expected'