| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Test.Cleveland.Instances
Contents
Synopsis
- class HasErrorSrcPos a where
- withoutEsp :: a -> a
Documentation
class HasErrorSrcPos a where Source #
Class of types with ErrorSrcPos allowing to remove it.
Can be used in tests when we want to compare only values without source positions.
Methods
withoutEsp :: a -> a Source #
Instances
| HasErrorSrcPos Value Source # | |
Defined in Test.Cleveland.Instances Methods withoutEsp :: Value -> Value Source # | |
| HasErrorSrcPos ExpandedInstr Source # | |
Defined in Test.Cleveland.Instances Methods withoutEsp :: ExpandedInstr -> ExpandedInstr Source # | |
| HasErrorSrcPos ExpandedOp Source # | |
Defined in Test.Cleveland.Instances Methods withoutEsp :: ExpandedOp -> ExpandedOp Source # | |
Orphan instances
| IsString MText Source # | |
Methods fromString :: String -> MText # | |
| IsString ContractAlias Source # | |
Methods fromString :: String -> ContractAlias # | |
| IsString ImplicitAlias Source # | |
Methods fromString :: String -> ImplicitAlias # | |
| Num Mutez Source # | |
| Integral Mutez Source # | |
| Real Mutez Source # | |
Methods toRational :: Mutez -> Rational # | |
| Default EpName Source # | |
| Buildable ByteString Source # | |
| Buildable FailureReason Source # | |
| Buildable LByteString Source # | |
| NiceEntrypointName sym => IsLabel sym EpName Source # | |
| IsString (Annotation tag) Source # | |
Methods fromString :: String -> Annotation tag # | |
| Ord k => Monoid (BigMap k v) Source # | This instance is declared in this test module because it's not lawful, i.e. it breaks the right and left-identity laws: x = BigMap (Just 1) mempty :: BigMap Int Int bmId (x <> mempty) == bmId x False bmId (mempty <> x) == bmId x False |
| (Eq k, Eq v) => Eq (BigMap k v) Source # | This instance is declared in this test module because it's not lawful, i.e. it breaks the substitutivity law. This laws says that x = BigMap (Just 1) mempty :: BigMap Int Int y = BigMap (Just 2) mempty :: BigMap Int Int x == y True bmId x == bmId y False |