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

NewtypeZoo.Needed

Description

Indicate that something is Needed.

Documentation

newtype Needed a Source #

Constructors

Needed a 

Instances

Instances details
Monad Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

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

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

return :: a -> Needed a #

Functor Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

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

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

MonadFix Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

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

Applicative Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

pure :: a -> Needed a #

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

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

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

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

Foldable Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

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

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

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

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

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

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

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

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

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

toList :: Needed a -> [a] #

null :: Needed a -> Bool #

length :: Needed a -> Int #

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

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

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

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

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

Traversable Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

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

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

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

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

Eq1 Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

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

Ord1 Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

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

Read1 Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

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

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

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

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

Show1 Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

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

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

MonadZip Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

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

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

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

Pointed Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

point :: a -> Needed a #

Copointed Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Methods

copoint :: Needed a -> a #

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

Defined in NewtypeZoo.Needed

Methods

minBound :: Needed a #

maxBound :: Needed a #

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

Defined in NewtypeZoo.Needed

Methods

succ :: Needed a -> Needed a #

pred :: Needed a -> Needed a #

toEnum :: Int -> Needed a #

fromEnum :: Needed a -> Int #

enumFrom :: Needed a -> [Needed a] #

enumFromThen :: Needed a -> Needed a -> [Needed a] #

enumFromTo :: Needed a -> Needed a -> [Needed a] #

enumFromThenTo :: Needed a -> Needed a -> Needed a -> [Needed a] #

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

Defined in NewtypeZoo.Needed

Methods

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

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

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

Defined in NewtypeZoo.Needed

Methods

pi :: Needed a #

exp :: Needed a -> Needed a #

log :: Needed a -> Needed a #

sqrt :: Needed a -> Needed a #

(**) :: Needed a -> Needed a -> Needed a #

logBase :: Needed a -> Needed a -> Needed a #

sin :: Needed a -> Needed a #

cos :: Needed a -> Needed a #

tan :: Needed a -> Needed a #

asin :: Needed a -> Needed a #

acos :: Needed a -> Needed a #

atan :: Needed a -> Needed a #

sinh :: Needed a -> Needed a #

cosh :: Needed a -> Needed a #

tanh :: Needed a -> Needed a #

asinh :: Needed a -> Needed a #

acosh :: Needed a -> Needed a #

atanh :: Needed a -> Needed a #

log1p :: Needed a -> Needed a #

expm1 :: Needed a -> Needed a #

log1pexp :: Needed a -> Needed a #

log1mexp :: Needed a -> Needed a #

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

Defined in NewtypeZoo.Needed

Methods

(/) :: Needed a -> Needed a -> Needed a #

recip :: Needed a -> Needed a #

fromRational :: Rational -> Needed a #

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

Defined in NewtypeZoo.Needed

Methods

quot :: Needed a -> Needed a -> Needed a #

rem :: Needed a -> Needed a -> Needed a #

div :: Needed a -> Needed a -> Needed a #

mod :: Needed a -> Needed a -> Needed a #

quotRem :: Needed a -> Needed a -> (Needed a, Needed a) #

divMod :: Needed a -> Needed a -> (Needed a, Needed a) #

toInteger :: Needed a -> Integer #

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

Defined in NewtypeZoo.Needed

Methods

(+) :: Needed a -> Needed a -> Needed a #

(-) :: Needed a -> Needed a -> Needed a #

(*) :: Needed a -> Needed a -> Needed a #

negate :: Needed a -> Needed a #

abs :: Needed a -> Needed a #

signum :: Needed a -> Needed a #

fromInteger :: Integer -> Needed a #

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

Defined in NewtypeZoo.Needed

Methods

compare :: Needed a -> Needed a -> Ordering #

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

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

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

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

max :: Needed a -> Needed a -> Needed a #

min :: Needed a -> Needed a -> Needed a #

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

Defined in NewtypeZoo.Needed

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

Defined in NewtypeZoo.Needed

Methods

toRational :: Needed a -> Rational #

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

Defined in NewtypeZoo.Needed

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

Defined in NewtypeZoo.Needed

Methods

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

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

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

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

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

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

Defined in NewtypeZoo.Needed

Methods

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

show :: Needed a -> String #

showList :: [Needed a] -> ShowS #

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

Defined in NewtypeZoo.Needed

Methods

range :: (Needed a, Needed a) -> [Needed a] #

index :: (Needed a, Needed a) -> Needed a -> Int #

unsafeIndex :: (Needed a, Needed a) -> Needed a -> Int #

inRange :: (Needed a, Needed a) -> Needed a -> Bool #

rangeSize :: (Needed a, Needed a) -> Int #

unsafeRangeSize :: (Needed a, Needed a) -> Int #

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

Defined in NewtypeZoo.Needed

Methods

fromString :: String -> Needed a #

Generic (Needed a) Source # 
Instance details

Defined in NewtypeZoo.Needed

Associated Types

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

Methods

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

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

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

Defined in NewtypeZoo.Needed

Methods

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

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

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

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

Defined in NewtypeZoo.Needed

Methods

mempty :: Needed a #

mappend :: Needed a -> Needed a -> Needed a #

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

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

Defined in NewtypeZoo.Needed

Methods

arbitrary :: Gen (Needed a) #

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

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

Defined in NewtypeZoo.Needed

Methods

(.&.) :: Needed a -> Needed a -> Needed a #

(.|.) :: Needed a -> Needed a -> Needed a #

xor :: Needed a -> Needed a -> Needed a #

complement :: Needed a -> Needed a #

shift :: Needed a -> Int -> Needed a #

rotate :: Needed a -> Int -> Needed a #

zeroBits :: Needed a #

bit :: Int -> Needed a #

setBit :: Needed a -> Int -> Needed a #

clearBit :: Needed a -> Int -> Needed a #

complementBit :: Needed a -> Int -> Needed a #

testBit :: Needed a -> Int -> Bool #

bitSizeMaybe :: Needed a -> Maybe Int #

bitSize :: Needed a -> Int #

isSigned :: Needed a -> Bool #

shiftL :: Needed a -> Int -> Needed a #

unsafeShiftL :: Needed a -> Int -> Needed a #

shiftR :: Needed a -> Int -> Needed a #

unsafeShiftR :: Needed a -> Int -> Needed a #

rotateL :: Needed a -> Int -> Needed a #

rotateR :: Needed a -> Int -> Needed a #

popCount :: Needed a -> Int #

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

Defined in NewtypeZoo.Needed

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

Defined in NewtypeZoo.Needed

Methods

def :: Needed a #

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

Defined in NewtypeZoo.Needed

Methods

rnf :: Needed a -> () #

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

Defined in NewtypeZoo.Needed

Methods

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

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

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

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

Generic1 Needed Source # 
Instance details

Defined in NewtypeZoo.Needed

Associated Types

type Rep1 Needed :: k -> Type #

Methods

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

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

type Rep (Needed a) Source # 
Instance details

Defined in NewtypeZoo.Needed

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

Defined in NewtypeZoo.Needed

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

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