| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Cardano.Crypto.MEqOrd
Documentation
Monadic flavor of Eq, for things that can only be compared in a monadic
context.
This is needed because we cannot have a sound Eq instance on mlocked
memory types.
Instances
Helper newtype, useful for defining MEq in terms of Eq for types that
have sound Eq instances, using DerivingVia. An Applicative context
must be provided for such instances to work, so this will generally require
StandaloneDeriving as well.
Ex.: deriving via PureEq Int instance Applicative m => MEq m Int
Constructors
| PureMEq a |