rerefined-0.1.0: Refinement types, again
Safe HaskellSafe-Inferred
LanguageGHC2021

Rerefined.Refined

Synopsis

Documentation

newtype Refined p a Source #

a refined with predicate p.

Constructors

Refined a 

Instances

Instances details
Lift a => Lift (Refined p a :: Type) Source # 
Instance details

Defined in Rerefined.Refined

Methods

lift :: Quote m => Refined p a -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Refined p a -> Code m (Refined p a) #

Show a => Show (Refined p a) Source # 
Instance details

Defined in Rerefined.Refined

Methods

showsPrec :: Int -> Refined p a -> ShowS #

show :: Refined p a -> String #

showList :: [Refined p a] -> ShowS #

unrefine :: Refined p a -> a Source #

Strip the refinement from a Refined.

This is kept as a separate function for prettier Show Refined output.