Increment.
[?]
Dec 11, 2014, 11:53 PM
LUM4VQJIHJKQWWD5NVWTVSNPKQTMGQQICTFOTM6W4BMME2G3G5RQCDependencies
- [2]
MWUPXTBFA few steps down a road to be abandoned. - [3]
EMVTF2IWWIP moving back to snap. - [4]
WO2MINIFAuctions now compile! - [5]
64C6AWH6Rename Ananke -> Quixotic, project reboot. - [6]
TZQJVHBAAdd auction functions to ADB. - [7]
75N3UJ4JMore progression toward lenses. - [8]
MXLZBRQNTrickle. - [9]
64VI73NPServer now compiles using abstracted SQLite - [10]
FRPWIKCNAdded log event parsing to Quixotic.Database.SQLite - [11]
NVOCQVASInitial failing tests. - [12]
7DBNV3GVInitial, stack-based impl of time log event reduction.
Change contents
- replacement in lib/Quixotic/Database/SQLite.hs at line 43[3.733]→[3.1370:1467](∅→∅),[3.4455]→[3.1370:1467](∅→∅),[3.1467]→[3.734:783](∅→∅),[3.345]→[3.35:96](∅→∅),[3.783]→[3.35:96](∅→∅),[3.1511]→[3.35:96](∅→∅)
let baseResult = EitherT $ execStatement db "SELECT btcAddr, event, eventTime from workEvents"rows <- lift $ bimapEitherT pack id baseResultreturn . intervals . catMaybes $ fmap parseRow (join rows)let selection = execStatement db "SELECT btcAddr, event, eventTime from workEvents"rows <- lift . EitherT $ fmap (over _Left pack) selectionreturn . intervals . catMaybes $ fmap parseLogEntry (join rows) - replacement in lib/Quixotic/Database/SQLite.hs at line 47
newAuction' :: Auction -> ReaderT a (EitherT Text IO) AuctionIdnewAuction' :: Auction -> ReaderT SQLiteHandle (EitherT Text IO) AuctionId - replacement in lib/Quixotic/Database/SQLite.hs at line 57
readAuction' = undefinedreadAuction' (AuctionId aid) = dodb <- asklet selection = execParamStatement db"SELECT raiseAmount, endsAt FROM auctions WHERE ROWID = :aid"[("aid", Int aid)]rows <- lift . EitherT $ fmap (over _Left pack) selection - replacement in lib/Quixotic/Database/SQLite.hs at line 74
parseRow :: Row Value -> Maybe LogEntryparseRow row = doparseLogEntry :: Row Value -> Maybe LogEntryparseLogEntry row = do - edit in lib/Quixotic/Database/SQLite.hs at line 81
parseAuction :: Row Value -> Maybe AuctionparseAuction row =Auction <$> (lookup "raiseAmount" row >>= valueBTC)<*> (lookup "endsAt" row >>= valueTime)valueBTC :: Value -> Maybe BTCvalueBTC (Int i) _ = Just $ BTC ivalueBTC _ = Nothing - replacement in lib/Quixotic/Database/SQLite.hs at line 107
eventTable = Table "workEvents" [ Column "btcAddr" (SQLVarChar 256) [], Column "event" (SQLVarChar 64) [], Column "eventTime" (SQLDateTime DATETIME) []] []eventTable = Table "workEvents"[ Column "btcAddr" (SQLVarChar 256) [], Column "event" (SQLVarChar 64) [], Column "eventTime" (SQLDateTime DATETIME) []] [] - replacement in lib/Quixotic/Database/SQLite.hs at line 114
auctionTable = Table "auctions" [ Column "raiseAmouont" (SQLInt BIG False False) [], Column "endsAt" (SQLDateTime DATETIME) []] []auctionTable = Table "auctions"[ Column "raiseAmouont" (SQLInt BIG False False) [], Column "endsAt" (SQLDateTime DATETIME) []] [] - replacement in lib/Quixotic.hs at line 14
newtype BTC = BTC { _btc :: Integer } deriving (Show, Eq, Ord)newtype BTC = BTC { _btc :: Int64 } deriving (Show, Eq, Ord)