- Oct 31, 2019
-
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
-
- Oct 30, 2019
-
-
Jean-Paul Calderone authored
Support serving either HTTP or HTTPS
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
Get stack to compute the doc path correctly Pass the same flags so the snapshot is computed the same so the paths match.
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
??? Okay what is it
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
`stack path --fast ...` says "Invalid option `--fast'"
-
Jean-Paul Calderone authored
From #haskell: > that might change optimization and thereby the abi since cross-module > inlining information will be absent with -O0 / no -O
-
- Oct 29, 2019
-
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
privacypass Nix packaging is sensitive to the version and the one previously selected is now too old
-
Jean-Paul Calderone authored
-
Jean-Paul Calderone authored
-
- Oct 25, 2019
-
-
Jean-Paul Calderone authored
Initial implementation of persistence using SQLite3.
-
Jean-Paul Calderone authored
Also, explode the tuple that made its way into `redeemVoucherHelper`
-
Jean-Paul Calderone authored
-
- Oct 24, 2019
-
-
Ramakrishnan Muthukrishnan authored
`redeemVoucher' reads stuff from the db, makes decisions and then writes to the db. However if there is another client doing a simultaneous `redeemVoucher' for the same `voucher', then both of them would redeem the voucher, which is incorrect. The operations should have exclusive access to the db and this is achieved with `withExclusiveTransaction`.
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
Vouchers table contain all paid vouchers, so to find if a given voucher is unpaid, all we need to do is check membership in the `vouchers' table.
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
- Oct 23, 2019
-
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
Type class instances for `redeemVoucher` function has a lot of code duplication. This change refactors them to reuse the main logic of the code and abstract out parts that differ between instances.
-
Ramakrishnan Muthukrishnan authored
A few cosmetic changes.
-
- Oct 21, 2019
-
-
Ramakrishnan Muthukrishnan authored
-
- Oct 20, 2019
-
-
Ramakrishnan Muthukrishnan authored
Rename the `Memory' constructor that constructs MemoryVoucherDatabase into `MemoryDB' to avoid conflict.
-
Ramakrishnan Muthukrishnan authored
Also expose all functions for now, for testing via "stack ghci".
-
- Oct 18, 2019
-
-
Ramakrishnan Muthukrishnan authored
-
- Oct 17, 2019
-
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
-
Ramakrishnan Muthukrishnan authored
Use this function to check if the given voucher is unpaid. Perhaps this can be done in Sql itself without resorting to set operations.
-