newtype-zoo-1.2.1.0: Newtype Wrapper Zoo
Safe HaskellNone
LanguageHaskell2010

NewtypeZoo.Required

Description

Indicate that something is Required.

Documentation

newtype Required a Source #

Constructors

Required a 

Instances

Instances details
Monad Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

(>>=) :: Required a -> (a -> Required b) -> Required b #

(>>) :: Required a -> Required b -> Required b #

return :: a -> Required a #

Functor Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

fmap :: (a -> b) -> Required a -> Required b #

(<$) :: a -> Required b -> Required a #

MonadFix Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

mfix :: (a -> Required a) -> Required a #

Applicative Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

pure :: a -> Required a #

(<*>) :: Required (a -> b) -> Required a -> Required b #

liftA2 :: (a -> b -> c) -> Required a -> Required b -> Required c #

(*>) :: Required a -> Required b -> Required b #

(<*) :: Required a -> Required b -> Required a #

Foldable Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

fold :: Monoid m => Required m -> m #

foldMap :: Monoid m => (a -> m) -> Required a -> m #

foldMap' :: Monoid m => (a -> m) -> Required a -> m #

foldr :: (a -> b -> b) -> b -> Required a -> b #

foldr' :: (a -> b -> b) -> b -> Required a -> b #

foldl :: (b -> a -> b) -> b -> Required a -> b #

foldl' :: (b -> a -> b) -> b -> Required a -> b #

foldr1 :: (a -> a -> a) -> Required a -> a #

foldl1 :: (a -> a -> a) -> Required a -> a #

toList :: Required a -> [a] #

null :: Required a -> Bool #

length :: Required a -> Int #

elem :: Eq a => a -> Required a -> Bool #

maximum :: Ord a => Required a -> a #

minimum :: Ord a => Required a -> a #

sum :: Num a => Required a -> a #

product :: Num a => Required a -> a #

Traversable Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

traverse :: Applicative f => (a -> f b) -> Required a -> f (Required b) #

sequenceA :: Applicative f => Required (f a) -> f (Required a) #

mapM :: Monad m => (a -> m b) -> Required a -> m (Required b) #

sequence :: Monad m => Required (m a) -> m (Required a) #

Eq1 Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

liftEq :: (a -> b -> Bool) -> Required a -> Required b -> Bool #

Ord1 Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

liftCompare :: (a -> b -> Ordering) -> Required a -> Required b -> Ordering #

Read1 Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

liftReadsPrec :: (Int -> ReadS a) -> ReadS [a] -> Int -> ReadS (Required a) #

liftReadList :: (Int -> ReadS a) -> ReadS [a] -> ReadS [Required a] #

liftReadPrec :: ReadPrec a -> ReadPrec [a] -> ReadPrec (Required a) #

liftReadListPrec :: ReadPrec a -> ReadPrec [a] -> ReadPrec [Required a] #

Show1 Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

liftShowsPrec :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> Required a -> ShowS #

liftShowList :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> [Required a] -> ShowS #

MonadZip Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

mzip :: Required a -> Required b -> Required (a, b) #

mzipWith :: (a -> b -> c) -> Required a -> Required b -> Required c #

munzip :: Required (a, b) -> (Required a, Required b) #

Pointed Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

point :: a -> Required a #

Copointed Required Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

copoint :: Required a -> a #

Bounded a => Bounded (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Enum a => Enum (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Eq a => Eq (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

(==) :: Required a -> Required a -> Bool #

(/=) :: Required a -> Required a -> Bool #

Floating a => Floating (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Fractional a => Fractional (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Integral a => Integral (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Num a => Num (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Ord a => Ord (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

compare :: Required a -> Required a -> Ordering #

(<) :: Required a -> Required a -> Bool #

(<=) :: Required a -> Required a -> Bool #

(>) :: Required a -> Required a -> Bool #

(>=) :: Required a -> Required a -> Bool #

max :: Required a -> Required a -> Required a #

min :: Required a -> Required a -> Required a #

Read a => Read (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Real a => Real (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

toRational :: Required a -> Rational #

RealFloat a => RealFloat (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

RealFrac a => RealFrac (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

properFraction :: Integral b => Required a -> (b, Required a) #

truncate :: Integral b => Required a -> b #

round :: Integral b => Required a -> b #

ceiling :: Integral b => Required a -> b #

floor :: Integral b => Required a -> b #

Show a => Show (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

showsPrec :: Int -> Required a -> ShowS #

show :: Required a -> String #

showList :: [Required a] -> ShowS #

Ix a => Ix (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

IsString a => IsString (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

fromString :: String -> Required a #

Generic (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Associated Types

type Rep (Required a) :: Type -> Type #

Methods

from :: Required a -> Rep (Required a) x #

to :: Rep (Required a) x -> Required a #

Semigroup a => Semigroup (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

(<>) :: Required a -> Required a -> Required a #

sconcat :: NonEmpty (Required a) -> Required a #

stimes :: Integral b => b -> Required a -> Required a #

Monoid a => Monoid (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

mempty :: Required a #

mappend :: Required a -> Required a -> Required a #

mconcat :: [Required a] -> Required a #

Arbitrary a => Arbitrary (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

arbitrary :: Gen (Required a) #

shrink :: Required a -> [Required a] #

Bits a => Bits (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

FiniteBits a => FiniteBits (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Default a => Default (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

def :: Required a #

NFData a => NFData (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

rnf :: Required a -> () #

Random a => Random (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

Methods

randomR :: RandomGen g => (Required a, Required a) -> g -> (Required a, g) #

random :: RandomGen g => g -> (Required a, g) #

randomRs :: RandomGen g => (Required a, Required a) -> g -> [Required a] #

randoms :: RandomGen g => g -> [Required a] #

Generic1 Required Source # 
Instance details

Defined in NewtypeZoo.Required

Associated Types

type Rep1 Required :: k -> Type #

Methods

from1 :: forall (a :: k). Required a -> Rep1 Required a #

to1 :: forall (a :: k). Rep1 Required a -> Required a #

type Rep (Required a) Source # 
Instance details

Defined in NewtypeZoo.Required

type Rep (Required a) = D1 ('MetaData "Required" "NewtypeZoo.Required" "newtype-zoo-1.2.1.0-Km8yne3Tled57gA1FTjiYK" 'True) (C1 ('MetaCons "Required" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)))
type Rep1 Required Source # 
Instance details

Defined in NewtypeZoo.Required

type Rep1 Required = D1 ('MetaData "Required" "NewtypeZoo.Required" "newtype-zoo-1.2.1.0-Km8yne3Tled57gA1FTjiYK" 'True) (C1 ('MetaCons "Required" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) Par1))

theRequired :: forall a b p f. (Profunctor p, Functor f) => p a (f b) -> p (Required a) (f (Required b)) Source #