Factor common JSON conversions up into client lib module.
[?]
Jan 14, 2015, 2:36 AM
W35DDBFYF6Z4ZPCFEO5RPAONZLYCSNTXUSTS6FIUUVZHCI6Q7GHACDependencies
- [2]
TCOAKCGGCompleted conversion to snap. - [3]
OBFPJS2GProject successfully builds and tests under nix. - [4]
XMONXALYFix sqlite/readWorkIndex table name - [5]
ADMKQQGCInitial empty Snap project. - [6]
WZUHEZSBStart of migration back toward snap. - [7]
EMVTF2IWWIP moving back to snap. - [8]
LAROLAYUWIP - [9]
64VI73NPServer now compiles using abstracted SQLite - [10]
64C6AWH6Rename Ananke -> Quixotic, project reboot. - [11]
RSEB2NFGReplacing Snap with Scotty. - [12]
NTPC7KJETrivial changes, feature scratchpad. - [13]
Z3M53KTLAdrift. - [*]
5W5M56VJMove library code to 'lib'
Change contents
- replacement in TASKS at line 45
Quixotic ServicePayouts Service - file addition: Json.hs[15.18]
{-# LANGUAGE ScopedTypeVariables #-}{-# LANGUAGE OverloadedStrings #-}{-# LANGUAGE NoImplicitPrelude #-}module Quixotic.Json whereimport ClassyPreludeimport Control.Lensimport Data.Aesonimport Data.Mapimport Quixoticimport Quixotic.TimeLognewtype PayoutsResponse = PayoutsResponse Payoutsinstance ToJSON PayoutsResponse wheretoJSON (PayoutsResponse p) = toJSON m wherem :: Map Text Doublem = fmap fromRational $ mapKeys (^. address) p - replacement in payouts/Main.hs at line 29
}} deriving Show - edit in payouts/Main.hs at line 46
putStrLn $ "Searching for unspent payouts " <> tshow cfg - file addition: Quixotic[3.1482]
- file addition: Client.hs[0.603]
{-# LANGUAGE ScopedTypeVariables #-}{-# LANGUAGE OverloadedStrings #-}{-# LANGUAGE NoImplicitPrelude #-}module Quixotic.Client whereimport ClassyPreludeimport Data.Aesonimport Quixoticimport Quixotic.Json - edit in quixotic.cabal at line 23
Quixotic.Json - edit in server/Main.hs at line 8
import Control.Lens - edit in server/Main.hs at line 11
import Data.Mapimport qualified Data.Text as T - edit in server/Main.hs at line 12
- edit in server/Main.hs at line 16
import Quixotic.Json - edit in server/Main.hs at line 18
- edit in server/Main.hs at line 70[2.1328]→[4.8456:8457](∅→∅),[4.2399]→[4.8456:8457](∅→∅),[4.3305]→[4.8456:8457](∅→∅),[4.6790]→[4.8456:8457](∅→∅),[4.8456]→[4.8456:8457](∅→∅),[4.3415]→[4.3415:3465](∅→∅),[4.2542]→[4.8536:8537](∅→∅),[4.3465]→[4.8536:8537](∅→∅),[4.8536]→[4.8536:8537](∅→∅),[4.8537]→[4.3466:3506](∅→∅),[4.3506]→[4.570:645](∅→∅),[4.645]→[2.1329:1380](∅→∅)
newtype PayoutsResponse = PayoutsResponse Payoutsinstance A.ToJSON PayoutsResponse wheretoJSON (PayoutsResponse p) = A.toJSON m wherem :: Map T.Text Doublem = fmap fromRational $ mapKeys (^. address) p