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

Modulerefined-0.8.2Haskell2010

Refined.Unsafe

This module exposes unsafe refinements. An unsafe refinement is one which either does not make the guarantee of totality in construction of the Refined value or does not perform a check of the refinement predicate. It is recommended only to use this when you can manually prove that the refinement predicate holds.

  • 1 type
  • 5 values
  • Packagerefined-0.8.2
  • Exports6
  • LanguageHaskell2010
  • LicenceMIT
  • SourceUnsafe.hs

Refined

1 declaration
newtypenewtype Refined (p :: k) x
#

A refinement type, which wraps a value of type x.

Instances13Lift, Foldable, Eq, Ord, Read, Show, …

Creation

valuereallyUnsafeRefine :: x -> Refined p x
#

Constructs a Refined value, completely ignoring any refinements! Use this only when you can manually prove that the refinement holds.

Coercion