HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

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