Skip to content
Snippets Groups Projects
Unverified Commit 8a0a8aa4 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

uglify for haddock

parent be445627
No related branches found
No related tags found
1 merge request!54The backend logic to make different counter values distinct
...@@ -201,23 +201,25 @@ getVoucherCounterForFingerprint dbConn fingerprint = ...@@ -201,23 +201,25 @@ getVoucherCounterForFingerprint dbConn fingerprint =
-- | Allow a voucher to be redeemed if it has been paid for and not redeemed -- | Allow a voucher to be redeemed if it has been paid for and not redeemed
-- before or redeemed with the same fingerprint. -- before or redeemed with the same fingerprint.
redeemVoucherHelper redeemVoucherHelper
-- | Has the given voucher been paid for? :: (Voucher -> IO Bool) -- ^ Has the given voucher been
:: (Voucher -> IO Bool) -- paid for?
-- | If it has been redeemed, with what fingerprint? -> (RedemptionKey -> IO (Maybe Fingerprint)) -- ^ If it has been redeemed,
-> (RedemptionKey -> IO (Maybe Fingerprint)) -- with what fingerprint?
-- | What redemption attempt has the given fingerprint been used with -> (Fingerprint -> IO (Maybe RedemptionKey)) -- ^ What redemption attempt
-- before, if any? -- has the given fingerprint
-> (Fingerprint -> IO (Maybe RedemptionKey)) -- been used with before, if
-- | Mark the redemption as successful. -- any?
-> (RedemptionKey -> Fingerprint -> IO ()) -> (RedemptionKey -> Fingerprint -> IO ()) -- ^ Mark the redemption as
-- | The voucher being used in this attempt. -- successful.
-> Voucher -> Voucher -- ^ The voucher being used in
-- | The counter being used in this account. -- this attempt.
-> Integer -> Integer -- ^ The counter being used in
-- | The fingerprint of the this attempt. -- this account.
-> Fingerprint -> Fingerprint -- ^ The fingerprint of the
-- | Right for successful redemption, left with details about why it failed. -- this attempt.
-> IO (Either RedeemError ()) -> IO (Either RedeemError ()) -- ^ Right for successful
-- redemption, left with
-- details about why it failed.
redeemVoucherHelper isVoucherPaid lookupFingerprint lookupVoucherCounter markVoucherRedeemed voucher counter fingerprint = do redeemVoucherHelper isVoucherPaid lookupFingerprint lookupVoucherCounter markVoucherRedeemed voucher counter fingerprint = do
paid <- isVoucherPaid voucher paid <- isVoucherPaid voucher
priorUse <- lookupVoucherCounter fingerprint priorUse <- lookupVoucherCounter fingerprint
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment