Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Opaque values.
Useful if you want to put something without a
Show
instance inside
something which you'd like to be able to display.
For example:
data State v = State { stateRefs :: [Var (Opaque (IORef Int)) v] } deriving (Eq, Show)
Instances
Eq a => Eq ( Opaque a) Source # | |
Ord a => Ord ( Opaque a) Source # | |
Defined in Hedgehog.Internal.Opaque |
|
Show ( Opaque a) Source # | |