signable-0.4: Deterministic serialisation and signatures with proto-lens support

Data.Signable.Util

safeFromIntegral :: forall a b. (Integral a, Integral b, Bounded b) => a -> Maybe b Source #

liftEither :: (MonadFail m, Show a) => Either a b -> m b Source #

ifThenElse :: (a -> Bool) -> (a -> b) -> (a -> b) -> a -> b Source #