Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
Documentation
newtype DepositDeadline Source #
A positive, non-zero number of seconds.
Instances
depositFromNominalDiffTime :: MonadFail m => NominalDiffTime -> m DepositDeadline Source #
Create a DepositDeadline
from a NominalDiffTime
. This will fail if a
negative NominalDiffTime is provided and truncates to 1s if values < 1s are given.