Fix linting errors. (yay hlint!)
[?]
Oct 6, 2015, 9:12 PM
7HPY3QPFPN35PSPUBVNW2GTFB3CBQZBST4J2BAVJ7QMXLIUN52JACDependencies
- [2]
2XQD6KKKAdd invitation logic and clean up DBProg error handling. - [3]
2OIPAQCBMerge branch 'master' of github.com:nuttycom/ananke - [4]
7XN3I3QJAdd 'loggedIntervals' endpoint. - [5]
7KZP4RHZSwitch from Data.Time to Data.Thyme - [6]
Z7KS5XHHVery WIP. Wow. - [7]
EMVTF2IWWIP moving back to snap. - [8]
5DRIWGLUImproving TimeLog specs - [9]
A6HKMINBAttempting to improve JSON handling. - [10]
LD4GLVSFMore database stuff. - [11]
75N3UJ4JMore progression toward lenses. - [12]
N4NDAZYTInitial implementation of payouts. - [13]
SLL7262CMake depreciation functions more flexible. - [14]
SCXG6TJWMake log reduction safer in presence of overlapping events. - [15]
W35DDBFYFactor common JSON conversions up into client lib module. - [16]
GCVQD44VCreate amends endpoint, switch to UUID primary keys - [17]
KNSI575VCleanup of EventLog types. - [18]
QMRKFEPGRefactor QDB to use a free monad algebra instead. - [19]
4QX5E5ACInitial compilation of payouts function succeeds. - [20]
WO2MINIFAuctions now compile! - [21]
2G3GNDDUEvent logging is now functioning in postgres. - [22]
TLQ72DSJLenses, sqlite-simple - [23]
PBD7LZYQPostgres & auth are beginning to function. - [24]
XTBSG4C7Adding serveJSON combinator to eliminate some boilerplate from handlers. - [25]
7DBNV3GVInitial, stack-based impl of time log event reduction. - [26]
4U7F3CPITHE GREAT RENAMING OF THINGS! - [27]
Y35QCWYWMinor improvement in WorkIndex type to eliminate duplicated information. - [28]
ZITLSTYXFix problems with SQL queries & depreciation function parsing. - [29]
IZEVQF62Work in progress replacing sqlite with postgres. - [30]
TNR3TEHKSwitch to Postgres + snaplet arch compiles. - [31]
O5FVTOM6Undo JSON silliness, enable a couple more routes. - [32]
EQXRXRZDChanged to use tasty instead of test-framework - [33]
RPAJLHMTChange to use UUIDs instead of ints for primary keys. - [*]
LAROLAYUWIP - [*]
NVOCQVASInitial failing tests.
Change contents
- replacement in lib/Aftok/Auction.hs at line 49
x : (takeWinningBids (total + (x ^. bidAmount)) xs)x : takeWinningBids (total + (x ^. bidAmount)) xs - replacement in lib/Aftok/Auction.hs at line 55
remainderSeconds = Seconds . round $ winFraction * (toRational $ x ^. bidSeconds)remainderSeconds = Seconds . round $ winFraction * toRational (x ^. bidSeconds) - replacement in lib/Aftok/Auction.hs at line 62
in takeWinningBids (fromInteger 0) $ sort bids[3.1147]in takeWinningBids 0 $ sort bids - replacement in lib/Aftok/Database/PostgreSQL.hs at line 174
dbEval (FindEvent (EventId eid)) = dologEntries <- pquery qdbLogEntryParserdbEval (FindEvent (EventId eid)) =headMay <$> pquery qdbLogEntryParser - edit in lib/Aftok/Database/PostgreSQL.hs at line 179
pure $ headMay logEntries - replacement in lib/Aftok/Database/PostgreSQL.hs at line 181
let q p (Before e) = pquery plet q (Before e) = pquery logEntryParser - replacement in lib/Aftok/Database/PostgreSQL.hs at line 185
q p (During s e) = pquery pq (During s e) = pquery logEntryParser - replacement in lib/Aftok/Database/PostgreSQL.hs at line 190
q p (After s) = pquery pq (After s) = pquery logEntryParser - replacement in lib/Aftok/Database/PostgreSQL.hs at line 194
in q logEntryParser ivalin q ival - replacement in lib/Aftok/Database/PostgreSQL.hs at line 214
(Only $ pid)(Only pid) - replacement in lib/Aftok/Database/PostgreSQL.hs at line 221
(pid ^. (_ProjectId), auc ^. (raiseAmount.to PBTC), auc ^. (auctionEnd.to fromThyme))(pid ^. _ProjectId, auc ^. (raiseAmount.to PBTC), auc ^. (auctionEnd.to fromThyme)) - replacement in lib/Aftok/Database/PostgreSQL.hs at line 223
dbEval (FindAuction aucId) = doauctions <- pquery auctionParserdbEval (FindAuction aucId) =headMay <$> pquery auctionParser - edit in lib/Aftok/Database/PostgreSQL.hs at line 227
pure $ headMay auctions - replacement in lib/Aftok/Database/PostgreSQL.hs at line 242
(Only $ (aucId ^. _AuctionId))(Only (aucId ^. _AuctionId)) - replacement in lib/Aftok/Database/PostgreSQL.hs at line 249
dbEval (FindUser (UserId uid)) = dousers <- pquery userParserdbEval (FindUser (UserId uid)) =headMay <$> pquery userParser - edit in lib/Aftok/Database/PostgreSQL.hs at line 253
pure $ headMay users - replacement in lib/Aftok/Database/PostgreSQL.hs at line 254
dbEval (FindUserByName (UserName h)) = dousers <- pquery qdbUserParserdbEval (FindUserByName (UserName h)) =headMay <$> pquery qdbUserParser - edit in lib/Aftok/Database/PostgreSQL.hs at line 258
pure $ headMay users - replacement in lib/Aftok/Database/PostgreSQL.hs at line 267
dbEval (FindInvitation ic) = doinvitations <- pquery invitationParserdbEval (FindInvitation ic) =headMay <$> pquery invitationParser - edit in lib/Aftok/Database/PostgreSQL.hs at line 272
pure $ headMay invitations - replacement in lib/Aftok/Database/PostgreSQL.hs at line 290
dbEval (FindProject (ProjectId pid)) = doprojects <- pquery projectParserdbEval (FindProject (ProjectId pid)) =headMay <$> pquery projectParser - edit in lib/Aftok/Database/PostgreSQL.hs at line 294
pure $ headMay projects - replacement in lib/Aftok/Database/PostgreSQL.hs at line 303
dbEval (AddUserToProject pid current new) = dovoid $ pexecdbEval (AddUserToProject pid current new) = void $pexec - replacement in lib/Aftok/Interval.hs at line 41
ilen i = (_end i) .-. (_start i)ilen i = _end i .-. _start i - edit in lib/Aftok/Json.hs at line 1
{-# LANGUAGE TemplateHaskell #-} - replacement in lib/Aftok/Json.hs at line 83
object [ "projectId" .= (tshow $ pid ^. _ProjectId)object [ "projectId" .= tshow (pid ^. _ProjectId) - replacement in lib/Aftok/Json.hs at line 91
, "initiator" .= (tshow $ p ^. (initiator._UserId)) ], "initiator" .= tshow (p ^. (initiator._UserId))] - replacement in lib/Aftok/Json.hs at line 100
toJSON $ (L.toList . fmap intervalJSON) <$> (MS.mapKeysMonotonic (^._BtcAddr) widx)toJSON $ (L.toList . fmap intervalJSON) <$> MS.mapKeysMonotonic (^._BtcAddr) widx - replacement in lib/Aftok/Json.hs at line 132
(fail $ (show addrText) <> "is not a valid BTC address")(fail $ show addrText <> "is not a valid BTC address") - replacement in lib/Aftok/TimeLog.hs at line 118
(totalTime, keyTimes) = MS.mapAccum addIntervalDiff zeroV $ widx(totalTime, keyTimes) = MS.mapAccum addIntervalDiff zeroV widx - replacement in lib/Aftok/TimeLog.hs at line 124
let sortedEntries = F.foldr H.insert H.empty $ logEntriesrawIndex = F.foldl' appendLogEntry MS.empty $ sortedEntrieslet sortedEntries = F.foldr H.insert H.empty logEntriesrawIndex = F.foldl' appendLogEntry MS.empty sortedEntries - replacement in lib/Aftok/TimeLog.hs at line 160
_ -> Left ev : []_ -> [Left ev] - replacement in lib/Aftok/TimeLog.hs at line 184
in depreciation *^ (ilen ival)[3.2812]in depreciation *^ ilen ival - replacement in lib/Aftok/Util/Http.hs at line 20
(uname : pwd : []) -> pure $ (decodeUtf8 uname, pwd)[uname, pwd] -> pure (decodeUtf8 uname, pwd) - replacement in lib/Aftok.hs at line 86
, "arguments" .= (object [ "undep" .= up, "dep" .= dp])], "arguments" .= object [ "undep" .= up, "dep" .= dp]]