HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehedgehog-1.7Haskell2010

Hedgehog.Internal.Opaque

  • 1 type
  • Packagehedgehog-1.7
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceOpaque.hs
newtypenewtype Opaque a
#

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)

Constructors

Instances3Eq, Ord, Show
  • Eq a => Eq (Opaque a)Defined in hedgehog-1.7 · Hedgehog.Internal.Opaque
  • Ord a => Ord (Opaque a)Defined in hedgehog-1.7 · Hedgehog.Internal.Opaque
  • Show (Opaque a)Defined in hedgehog-1.7 · Hedgehog.Internal.Opaque