Adrift.
[?]
Nov 13, 2014, 3:17 AM
Z3M53KTLZMPOISMHE25SZJSWX5TA37IV33IRE7KNRAD3PKEAEJXQCDependencies
- [2]
64VI73NPServer now compiles using abstracted SQLite - [3]
ADMKQQGCInitial empty Snap project. - [4]
RSEB2NFGReplacing Snap with Scotty. - [5]
64C6AWH6Rename Ananke -> Quixotic, project reboot.
Change contents
- replacement in quixotic.cabal at line 23
build-depends: base >= 4.7.0.1build-depends: base - edit in quixotic.cabal at line 63
, configurator == 0.2.* - edit in server/Main.hs at line 5
import Control.Applicative - edit in server/Main.hs at line 9
import qualified Data.Configurator as C - edit in server/Main.hs at line 20
port :: Intport = 8028 - replacement in server/Main.hs at line 23
db <- openConnection "quixotic.db"cfg <- parseConfig "quixotic.cfg"db <- openConnection $ dbName cfg - replacement in server/Main.hs at line 26
dbMain db adbdbMain cfg db adb - replacement in server/Main.hs at line 28[3.2595]→[2.305:338](∅→∅),[2.338]→[3.2625:2644](∅→∅),[3.2625]→[3.2625:2644](∅→∅),[3.2644]→[3.1579:1598](∅→∅),[3.1579]→[3.1579:1598](∅→∅)
dbMain :: a -> ADB IO a -> IO ()dbMain db adb = doscotty port $ dodata QConfig= QConfig{ port :: Int, dbName :: String}parseConfig :: FilePath -> IO QConfigparseConfig cfgFile = docfg <- C.load [C.Required cfgFile]QConfig <$> C.require cfg "port" <*> C.require cfg "db"dbMain :: QConfig -> a -> ADB IO a -> IO ()dbMain cfg db adb = doscotty (port cfg) $ do - replacement in server/Main.hs at line 82
toJSON (PayoutsResponse p) = A.toJSON (mapKeys address p)[3.3506]toJSON (PayoutsResponse p) = A.toJSON m wherem :: Map T.Text Doublem = fmap fromRational (mapKeys address p)