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

Safe HaskellSafe
LanguageHaskell2010

Data.Signable.Util

Documentation

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 #