Skip to content

Commit

Permalink
Use strict fields for RetryStatus
Browse files Browse the repository at this point in the history
For #32
  • Loading branch information
MichaelXavier committed Nov 12, 2015
1 parent 87e3403 commit 8f631fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Control/Retry.hs
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ instance Monad m => Monoid (RetryPolicyM m) where
-- >> retryStatus { rsIterNumber = newIterNumber }
-- >> retryStatus & rsIterNumberL .~ newIterNumber
data RetryStatus = RetryStatus
{ rsIterNumber :: Int -- ^ Iteration number, where 0 is the first try
, rsCumulativeDelay :: Int -- ^ Delay incurred so far from retries in microseconds
, rsPreviousDelay :: Maybe Int -- ^ Previous attempt's delay. Will always be Nothing on first run.
{ rsIterNumber :: !Int -- ^ Iteration number, where 0 is the first try
, rsCumulativeDelay :: !Int -- ^ Delay incurred so far from retries in microseconds
, rsPreviousDelay :: !(Maybe Int) -- ^ Previous attempt's delay. Will always be Nothing on first run.
} deriving (Show, Eq, Generic)


Expand Down

0 comments on commit 8f631fa

Please sign in to comment.