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

NewtypeZoo.Single

Description

Indicate that something contains only a Single part of something.

Documentation

newtype Single a Source #

Constructors

Single a 

Instances

Instances details
Monad Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

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

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

return :: a -> Single a #

Functor Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

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

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

MonadFix Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

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

Applicative Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

pure :: a -> Single a #

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

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

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

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

Foldable Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

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

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

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

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

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

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

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

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

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

toList :: Single a -> [a] #

null :: Single a -> Bool #

length :: Single a -> Int #

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

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

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

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

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

Traversable Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

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

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

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

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

Eq1 Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

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

Ord1 Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

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

Read1 Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

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

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

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

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

Show1 Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

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

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

MonadZip Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

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

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

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

Pointed Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

point :: a -> Single a #

Copointed Single Source # 
Instance details

Defined in NewtypeZoo.Single

Methods

copoint :: Single a -> a #

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

Defined in NewtypeZoo.Single

Methods

minBound :: Single a #

maxBound :: Single a #

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

Defined in NewtypeZoo.Single

Methods

succ :: Single a -> Single a #

pred :: Single a -> Single a #

toEnum :: Int -> Single a #

fromEnum :: Single a -> Int #

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

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

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

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

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

Defined in NewtypeZoo.Single

Methods

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

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

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

Defined in NewtypeZoo.Single

Methods

pi :: Single a #

exp :: Single a -> Single a #

log :: Single a -> Single a #

sqrt :: Single a -> Single a #

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

logBase :: Single a -> Single a -> Single a #

sin :: Single a -> Single a #

cos :: Single a -> Single a #

tan :: Single a -> Single a #

asin :: Single a -> Single a #

acos :: Single a -> Single a #

atan :: Single a -> Single a #

sinh :: Single a -> Single a #

cosh :: Single a -> Single a #

tanh :: Single a -> Single a #

asinh :: Single a -> Single a #

acosh :: Single a -> Single a #

atanh :: Single a -> Single a #

log1p :: Single a -> Single a #

expm1 :: Single a -> Single a #

log1pexp :: Single a -> Single a #

log1mexp :: Single a -> Single a #

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

Defined in NewtypeZoo.Single

Methods

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

recip :: Single a -> Single a #

fromRational :: Rational -> Single a #

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

Defined in NewtypeZoo.Single

Methods

quot :: Single a -> Single a -> Single a #

rem :: Single a -> Single a -> Single a #

div :: Single a -> Single a -> Single a #

mod :: Single a -> Single a -> Single a #

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

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

toInteger :: Single a -> Integer #

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

Defined in NewtypeZoo.Single

Methods

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

(-) :: Single a -> Single a -> Single a #

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

negate :: Single a -> Single a #

abs :: Single a -> Single a #

signum :: Single a -> Single a #

fromInteger :: Integer -> Single a #

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

Defined in NewtypeZoo.Single

Methods

compare :: Single a -> Single a -> Ordering #

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

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

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

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

max :: Single a -> Single a -> Single a #

min :: Single a -> Single a -> Single a #

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

Defined in NewtypeZoo.Single

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

Defined in NewtypeZoo.Single

Methods

toRational :: Single a -> Rational #

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

Defined in NewtypeZoo.Single

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

Defined in NewtypeZoo.Single

Methods

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

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

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

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

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

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

Defined in NewtypeZoo.Single

Methods

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

show :: Single a -> String #

showList :: [Single a] -> ShowS #

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

Defined in NewtypeZoo.Single

Methods

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

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

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

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

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

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

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

Defined in NewtypeZoo.Single

Methods

fromString :: String -> Single a #

Generic (Single a) Source # 
Instance details

Defined in NewtypeZoo.Single

Associated Types

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

Methods

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

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

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

Defined in NewtypeZoo.Single

Methods

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

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

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

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

Defined in NewtypeZoo.Single

Methods

mempty :: Single a #

mappend :: Single a -> Single a -> Single a #

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

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

Defined in NewtypeZoo.Single

Methods

arbitrary :: Gen (Single a) #

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

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

Defined in NewtypeZoo.Single

Methods

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

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

xor :: Single a -> Single a -> Single a #

complement :: Single a -> Single a #

shift :: Single a -> Int -> Single a #

rotate :: Single a -> Int -> Single a #

zeroBits :: Single a #

bit :: Int -> Single a #

setBit :: Single a -> Int -> Single a #

clearBit :: Single a -> Int -> Single a #

complementBit :: Single a -> Int -> Single a #

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

bitSizeMaybe :: Single a -> Maybe Int #

bitSize :: Single a -> Int #

isSigned :: Single a -> Bool #

shiftL :: Single a -> Int -> Single a #

unsafeShiftL :: Single a -> Int -> Single a #

shiftR :: Single a -> Int -> Single a #

unsafeShiftR :: Single a -> Int -> Single a #

rotateL :: Single a -> Int -> Single a #

rotateR :: Single a -> Int -> Single a #

popCount :: Single a -> Int #

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

Defined in NewtypeZoo.Single

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

Defined in NewtypeZoo.Single

Methods

def :: Single a #

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

Defined in NewtypeZoo.Single

Methods

rnf :: Single a -> () #

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

Defined in NewtypeZoo.Single

Methods

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

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

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

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

Generic1 Single Source # 
Instance details

Defined in NewtypeZoo.Single

Associated Types

type Rep1 Single :: k -> Type #

Methods

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

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

type Rep (Single a) Source # 
Instance details

Defined in NewtypeZoo.Single

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

Defined in NewtypeZoo.Single

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

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