Convert project to stack-based build.
[?]
Feb 20, 2016, 5:41 AM
KEP5WUFJXTMKRRNZLYTGYYWA4VLFCMHTKTJYF5EA5IWBYFMU6WYQCDependencies
- [2]
7HPY3QPFFix linting errors. (yay hlint!) - [3]
75N3UJ4JMore progression toward lenses. - [4]
RPAJLHMTChange to use UUIDs instead of ints for primary keys. - [5]
TLQ72DSJLenses, sqlite-simple - [6]
QMRKFEPGRefactor QDB to use a free monad algebra instead. - [7]
4U7F3CPITHE GREAT RENAMING OF THINGS! - [8]
KNSI575VCleanup of EventLog types. - [9]
IZEVQF62Work in progress replacing sqlite with postgres. - [10]
LAROLAYUWIP - [11]
Z7KS5XHHVery WIP. Wow. - [12]
WO2MINIFAuctions now compile! - [13]
7KZP4RHZSwitch from Data.Time to Data.Thyme - [14]
WZUHEZSBStart of migration back toward snap. - [15]
GCVQD44VCreate amends endpoint, switch to UUID primary keys - [16]
2XQD6KKKAdd invitation logic and clean up DBProg error handling. - [17]
5DRIWGLUImproving TimeLog specs - [18]
TNR3TEHKSwitch to Postgres + snaplet arch compiles. - [19]
BROSTG5KBeginning of modularization of server. - [20]
MWUPXTBFA few steps down a road to be abandoned. - [21]
OBFPJS2GProject successfully builds and tests under nix. - [*]
ADMKQQGCInitial empty Snap project. - [*]
PGZJ736CUpdate aftok.cfg.example and revise INSTALL instructions - [*]
64C6AWH6Rename Ananke -> Quixotic, project reboot. - [*]
A6HKMINBAttempting to improve JSON handling. - [*]
AXKKXBWNInitial attempt at writing down my ideas for a company based on trust.
Change contents
- edit in .gitignore at line 4
.stack-work - replacement in aftok.cabal at line 35
, aeson == 0.8.*, attoparsec == 0.12.*, aeson == 0.9.*, attoparsec == 0.13.* - replacement in aftok.cabal at line 44
, errors >= 1.4 && < 1.5, errors == 2.1.* - replacement in aftok.cabal at line 51
, lens >= 4.11 && < 4.12, network-bitcoin >= 1.8 && < 1.9, lens >= 4.11--, network-bitcoin >= 1.8 && < 1.9 - replacement in aftok.cabal at line 54
, postgresql-simple >= 0.4.10 && < 0.5, postgresql-simple == 0.5.* - edit in aftok.cabal at line 132[3.1612]→[3.3217:3218](∅→∅),[3.7402]→[3.3217:3218](∅→∅),[3.7495]→[3.3217:3218](∅→∅),[3.545]→[3.3217:3218](∅→∅),[3.3218]→[3.519:544](∅→∅),[3.544]→[3.3246:3346](∅→∅),[3.3246]→[3.3246:3346](∅→∅),[3.3346]→[3.547:707](∅→∅),[3.707]→[3.3346:3399](∅→∅),[3.3346]→[3.3346:3399](∅→∅),[3.3399]→[3.545:557](∅→∅),[3.557]→[3.3414:3567](∅→∅),[3.3414]→[3.3414:3567](∅→∅),[3.3567]→[3.2978:2990](∅→∅),[3.2990]→[3.3578:3698](∅→∅),[3.3578]→[3.3578:3698](∅→∅)
Executable aftok-payoutsdefault-language: Haskell2010ghc-options: -Wall -Werrorhs-source-dirs: payoutsdefault-extensions: NoImplicitPrelude, OverloadedStrings, RecordWildCards, ScopedTypeVariablesmain-is: Main.hsbuild-depends:aftok, base, classy-prelude >= 0.10.2, containers, either, mtl >= 2 && < 3, lens, text, thyme, vector, transformers, configurator, optparse-applicative, bytestring, network-bitcoin - edit in lib/Aftok/Auction.hs at line 10
import Network.Bitcoin - edit in lib/Aftok/Auction.hs at line 12
import Aftok.Types - replacement in lib/Aftok/Auction.hs at line 18
{ _raiseAmount :: BTC{ _raiseAmount :: Satoshi - replacement in lib/Aftok/Auction.hs at line 29
, _bidAmount :: BTC, _bidAmount :: Satoshi - replacement in lib/Aftok/Auction.hs at line 45
let takeWinningBids :: BTC -> [Bid] -> [Bid]let takeWinningBids :: Satoshi -> [Bid] -> [Bid] - replacement in lib/Aftok/Auction.hs at line 54
winFraction = toRational $ remainder / (x ^. bidAmount)winFraction = toRational remainder / toRational (x ^. bidAmount) - edit in lib/Aftok/Database/PostgreSQL.hs at line 5
import Blaze.ByteString.Builder (fromByteString) - edit in lib/Aftok/Database/PostgreSQL.hs at line 10
import Data.Fixed - edit in lib/Aftok/Database/PostgreSQL.hs at line 16
import Database.PostgreSQL.Simple.ToField - edit in lib/Aftok/Database/PostgreSQL.hs at line 18
import Network.Bitcoin - edit in lib/Aftok/Database/PostgreSQL.hs at line 24
import Aftok.Types - replacement in lib/Aftok/Database/PostgreSQL.hs at line 72
btcParser :: FieldParser BTCbtcParser f v = fromRational <$> fromField f vbtcParser :: FieldParser SatoshibtcParser f v = (Satoshi . fromInteger) <$> fromField f v - edit in lib/Aftok/Database/PostgreSQL.hs at line 78[3.272]→[3.161:186](∅→∅),[3.2338]→[3.161:186](∅→∅),[3.186]→[3.2374:2483](∅→∅),[3.2374]→[3.2374:2483](∅→∅),[3.223]→[3.223:224](∅→∅)
newtype PBTC = PBTC BTCinstance ToField PBTC wheretoField (PBTC btc) = Plain . fromByteString . fromString $ showFixed False btc - replacement in lib/Aftok/Database/PostgreSQL.hs at line 87
<*> fieldWith uidParser<*> logEntryParser<*> fieldWith uidParser<*> logEntryParser - replacement in lib/Aftok/Database/PostgreSQL.hs at line 92
Auction <$> (fromRational <$> field)Auction <$> fieldWith btcParser - replacement in lib/Aftok/Database/PostgreSQL.hs at line 214
(pid ^. _ProjectId, auc ^. (raiseAmount.to PBTC), auc ^. (auctionEnd.to fromThyme))(pid ^. _ProjectId, auc ^. (raiseAmount.to fromSatoshi), auc ^. (auctionEnd.to fromThyme)) - replacement in lib/Aftok/Database/PostgreSQL.hs at line 228
, bid ^. (bidAmount.to PBTC), bid ^. (bidAmount.to fromSatoshi) - file addition: Types.hs[3.679]
{-# LANGUAGE GeneralizedNewtypeDeriving #-}module Aftok.Types whereimport Data.Wordimport ClassyPreludenewtype Satoshi = Satoshi { fromSatoshi :: Word64 }deriving (Show, Eq, Ord, Num, Real, Bounded) - file addition: stack.yaml[27.2]
flags: {}packages:- '.'extra-deps:- snaplet-postgresql-simple-0.6.0.4- resource-pool-catchio-0.2.1.0resolver: lts-5.3#allow-newer: true