-- | Indicate that something is `Allocated`.
module NewtypeZoo.Allocated
  ( Allocated(Allocated)
  , _theAllocated
  , theAllocated
  ) where

import           Control.Comonad (Comonad)
import           Control.DeepSeq (NFData)
import           Control.Monad.Fix (MonadFix)
import           Control.Monad.Zip (MonadZip)
import           Data.Bits       (Bits,FiniteBits)
import           Data.Copointed  (Copointed)
import           Data.Default    (Default)
import           Data.Functor.Classes (Eq1, Ord1, Read1, Show1)
import           Data.Functor.Identity
import           Data.Ix         (Ix)
import           Data.Profunctor (Profunctor, dimap)
import           Data.Pointed    (Pointed)
import           Data.String     (IsString)
import           Data.Typeable   (Typeable)
import           Foreign.Storable (Storable)
import           GHC.Generics    (Generic, Generic1)
import           System.Random   (Random)
import           Test.QuickCheck (Arbitrary)

-- | A wrapper for something that is `Allocated`.
newtype Allocated a = Allocated a
  deriving ( Allocated a -> Allocated a -> Bool
(Allocated a -> Allocated a -> Bool)
-> (Allocated a -> Allocated a -> Bool) -> Eq (Allocated a)
forall a. Eq a => Allocated a -> Allocated a -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Allocated a -> Allocated a -> Bool
$c/= :: forall a. Eq a => Allocated a -> Allocated a -> Bool
== :: Allocated a -> Allocated a -> Bool
$c== :: forall a. Eq a => Allocated a -> Allocated a -> Bool
Eq
           , Eq (Allocated a)
Eq (Allocated a)
-> (Allocated a -> Allocated a -> Ordering)
-> (Allocated a -> Allocated a -> Bool)
-> (Allocated a -> Allocated a -> Bool)
-> (Allocated a -> Allocated a -> Bool)
-> (Allocated a -> Allocated a -> Bool)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> Ord (Allocated a)
Allocated a -> Allocated a -> Bool
Allocated a -> Allocated a -> Ordering
Allocated a -> Allocated a -> Allocated a
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
forall a. Ord a => Eq (Allocated a)
forall a. Ord a => Allocated a -> Allocated a -> Bool
forall a. Ord a => Allocated a -> Allocated a -> Ordering
forall a. Ord a => Allocated a -> Allocated a -> Allocated a
min :: Allocated a -> Allocated a -> Allocated a
$cmin :: forall a. Ord a => Allocated a -> Allocated a -> Allocated a
max :: Allocated a -> Allocated a -> Allocated a
$cmax :: forall a. Ord a => Allocated a -> Allocated a -> Allocated a
>= :: Allocated a -> Allocated a -> Bool
$c>= :: forall a. Ord a => Allocated a -> Allocated a -> Bool
> :: Allocated a -> Allocated a -> Bool
$c> :: forall a. Ord a => Allocated a -> Allocated a -> Bool
<= :: Allocated a -> Allocated a -> Bool
$c<= :: forall a. Ord a => Allocated a -> Allocated a -> Bool
< :: Allocated a -> Allocated a -> Bool
$c< :: forall a. Ord a => Allocated a -> Allocated a -> Bool
compare :: Allocated a -> Allocated a -> Ordering
$ccompare :: forall a. Ord a => Allocated a -> Allocated a -> Ordering
$cp1Ord :: forall a. Ord a => Eq (Allocated a)
Ord
           , ReadPrec [Allocated a]
ReadPrec (Allocated a)
Int -> ReadS (Allocated a)
ReadS [Allocated a]
(Int -> ReadS (Allocated a))
-> ReadS [Allocated a]
-> ReadPrec (Allocated a)
-> ReadPrec [Allocated a]
-> Read (Allocated a)
forall a. Read a => ReadPrec [Allocated a]
forall a. Read a => ReadPrec (Allocated a)
forall a. Read a => Int -> ReadS (Allocated a)
forall a. Read a => ReadS [Allocated a]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Allocated a]
$creadListPrec :: forall a. Read a => ReadPrec [Allocated a]
readPrec :: ReadPrec (Allocated a)
$creadPrec :: forall a. Read a => ReadPrec (Allocated a)
readList :: ReadS [Allocated a]
$creadList :: forall a. Read a => ReadS [Allocated a]
readsPrec :: Int -> ReadS (Allocated a)
$creadsPrec :: forall a. Read a => Int -> ReadS (Allocated a)
Read
           , Int -> Allocated a -> ShowS
[Allocated a] -> ShowS
Allocated a -> String
(Int -> Allocated a -> ShowS)
-> (Allocated a -> String)
-> ([Allocated a] -> ShowS)
-> Show (Allocated a)
forall a. Show a => Int -> Allocated a -> ShowS
forall a. Show a => [Allocated a] -> ShowS
forall a. Show a => Allocated a -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Allocated a] -> ShowS
$cshowList :: forall a. Show a => [Allocated a] -> ShowS
show :: Allocated a -> String
$cshow :: forall a. Show a => Allocated a -> String
showsPrec :: Int -> Allocated a -> ShowS
$cshowsPrec :: forall a. Show a => Int -> Allocated a -> ShowS
Show
           , Allocated a -> ()
(Allocated a -> ()) -> NFData (Allocated a)
forall a. NFData a => Allocated a -> ()
forall a. (a -> ()) -> NFData a
rnf :: Allocated a -> ()
$crnf :: forall a. NFData a => Allocated a -> ()
NFData
           , Allocated a -> Bool
(a -> m) -> Allocated a -> m
(a -> b -> b) -> b -> Allocated a -> b
(forall m. Monoid m => Allocated m -> m)
-> (forall m a. Monoid m => (a -> m) -> Allocated a -> m)
-> (forall m a. Monoid m => (a -> m) -> Allocated a -> m)
-> (forall a b. (a -> b -> b) -> b -> Allocated a -> b)
-> (forall a b. (a -> b -> b) -> b -> Allocated a -> b)
-> (forall b a. (b -> a -> b) -> b -> Allocated a -> b)
-> (forall b a. (b -> a -> b) -> b -> Allocated a -> b)
-> (forall a. (a -> a -> a) -> Allocated a -> a)
-> (forall a. (a -> a -> a) -> Allocated a -> a)
-> (forall a. Allocated a -> [a])
-> (forall a. Allocated a -> Bool)
-> (forall a. Allocated a -> Int)
-> (forall a. Eq a => a -> Allocated a -> Bool)
-> (forall a. Ord a => Allocated a -> a)
-> (forall a. Ord a => Allocated a -> a)
-> (forall a. Num a => Allocated a -> a)
-> (forall a. Num a => Allocated a -> a)
-> Foldable Allocated
forall a. Eq a => a -> Allocated a -> Bool
forall a. Num a => Allocated a -> a
forall a. Ord a => Allocated a -> a
forall m. Monoid m => Allocated m -> m
forall a. Allocated a -> Bool
forall a. Allocated a -> Int
forall a. Allocated a -> [a]
forall a. (a -> a -> a) -> Allocated a -> a
forall m a. Monoid m => (a -> m) -> Allocated a -> m
forall b a. (b -> a -> b) -> b -> Allocated a -> b
forall a b. (a -> b -> b) -> b -> Allocated a -> b
forall (t :: * -> *).
(forall m. Monoid m => t m -> m)
-> (forall m a. Monoid m => (a -> m) -> t a -> m)
-> (forall m a. Monoid m => (a -> m) -> t a -> m)
-> (forall a b. (a -> b -> b) -> b -> t a -> b)
-> (forall a b. (a -> b -> b) -> b -> t a -> b)
-> (forall b a. (b -> a -> b) -> b -> t a -> b)
-> (forall b a. (b -> a -> b) -> b -> t a -> b)
-> (forall a. (a -> a -> a) -> t a -> a)
-> (forall a. (a -> a -> a) -> t a -> a)
-> (forall a. t a -> [a])
-> (forall a. t a -> Bool)
-> (forall a. t a -> Int)
-> (forall a. Eq a => a -> t a -> Bool)
-> (forall a. Ord a => t a -> a)
-> (forall a. Ord a => t a -> a)
-> (forall a. Num a => t a -> a)
-> (forall a. Num a => t a -> a)
-> Foldable t
product :: Allocated a -> a
$cproduct :: forall a. Num a => Allocated a -> a
sum :: Allocated a -> a
$csum :: forall a. Num a => Allocated a -> a
minimum :: Allocated a -> a
$cminimum :: forall a. Ord a => Allocated a -> a
maximum :: Allocated a -> a
$cmaximum :: forall a. Ord a => Allocated a -> a
elem :: a -> Allocated a -> Bool
$celem :: forall a. Eq a => a -> Allocated a -> Bool
length :: Allocated a -> Int
$clength :: forall a. Allocated a -> Int
null :: Allocated a -> Bool
$cnull :: forall a. Allocated a -> Bool
toList :: Allocated a -> [a]
$ctoList :: forall a. Allocated a -> [a]
foldl1 :: (a -> a -> a) -> Allocated a -> a
$cfoldl1 :: forall a. (a -> a -> a) -> Allocated a -> a
foldr1 :: (a -> a -> a) -> Allocated a -> a
$cfoldr1 :: forall a. (a -> a -> a) -> Allocated a -> a
foldl' :: (b -> a -> b) -> b -> Allocated a -> b
$cfoldl' :: forall b a. (b -> a -> b) -> b -> Allocated a -> b
foldl :: (b -> a -> b) -> b -> Allocated a -> b
$cfoldl :: forall b a. (b -> a -> b) -> b -> Allocated a -> b
foldr' :: (a -> b -> b) -> b -> Allocated a -> b
$cfoldr' :: forall a b. (a -> b -> b) -> b -> Allocated a -> b
foldr :: (a -> b -> b) -> b -> Allocated a -> b
$cfoldr :: forall a b. (a -> b -> b) -> b -> Allocated a -> b
foldMap' :: (a -> m) -> Allocated a -> m
$cfoldMap' :: forall m a. Monoid m => (a -> m) -> Allocated a -> m
foldMap :: (a -> m) -> Allocated a -> m
$cfoldMap :: forall m a. Monoid m => (a -> m) -> Allocated a -> m
fold :: Allocated m -> m
$cfold :: forall m. Monoid m => Allocated m -> m
Foldable
           , Functor Allocated
Foldable Allocated
Functor Allocated
-> Foldable Allocated
-> (forall (f :: * -> *) a b.
    Applicative f =>
    (a -> f b) -> Allocated a -> f (Allocated b))
-> (forall (f :: * -> *) a.
    Applicative f =>
    Allocated (f a) -> f (Allocated a))
-> (forall (m :: * -> *) a b.
    Monad m =>
    (a -> m b) -> Allocated a -> m (Allocated b))
-> (forall (m :: * -> *) a.
    Monad m =>
    Allocated (m a) -> m (Allocated a))
-> Traversable Allocated
(a -> f b) -> Allocated a -> f (Allocated b)
forall (t :: * -> *).
Functor t
-> Foldable t
-> (forall (f :: * -> *) a b.
    Applicative f =>
    (a -> f b) -> t a -> f (t b))
-> (forall (f :: * -> *) a. Applicative f => t (f a) -> f (t a))
-> (forall (m :: * -> *) a b.
    Monad m =>
    (a -> m b) -> t a -> m (t b))
-> (forall (m :: * -> *) a. Monad m => t (m a) -> m (t a))
-> Traversable t
forall (m :: * -> *) a.
Monad m =>
Allocated (m a) -> m (Allocated a)
forall (f :: * -> *) a.
Applicative f =>
Allocated (f a) -> f (Allocated a)
forall (m :: * -> *) a b.
Monad m =>
(a -> m b) -> Allocated a -> m (Allocated b)
forall (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> Allocated a -> f (Allocated b)
sequence :: Allocated (m a) -> m (Allocated a)
$csequence :: forall (m :: * -> *) a.
Monad m =>
Allocated (m a) -> m (Allocated a)
mapM :: (a -> m b) -> Allocated a -> m (Allocated b)
$cmapM :: forall (m :: * -> *) a b.
Monad m =>
(a -> m b) -> Allocated a -> m (Allocated b)
sequenceA :: Allocated (f a) -> f (Allocated a)
$csequenceA :: forall (f :: * -> *) a.
Applicative f =>
Allocated (f a) -> f (Allocated a)
traverse :: (a -> f b) -> Allocated a -> f (Allocated b)
$ctraverse :: forall (f :: * -> *) a b.
Applicative f =>
(a -> f b) -> Allocated a -> f (Allocated b)
$cp2Traversable :: Foldable Allocated
$cp1Traversable :: Functor Allocated
Traversable
           , a -> Allocated b -> Allocated a
(a -> b) -> Allocated a -> Allocated b
(forall a b. (a -> b) -> Allocated a -> Allocated b)
-> (forall a b. a -> Allocated b -> Allocated a)
-> Functor Allocated
forall a b. a -> Allocated b -> Allocated a
forall a b. (a -> b) -> Allocated a -> Allocated b
forall (f :: * -> *).
(forall a b. (a -> b) -> f a -> f b)
-> (forall a b. a -> f b -> f a) -> Functor f
<$ :: a -> Allocated b -> Allocated a
$c<$ :: forall a b. a -> Allocated b -> Allocated a
fmap :: (a -> b) -> Allocated a -> Allocated b
$cfmap :: forall a b. (a -> b) -> Allocated a -> Allocated b
Functor
           , Allocated a
Allocated a -> Default (Allocated a)
forall a. a -> Default a
forall a. Default a => Allocated a
def :: Allocated a
$cdef :: forall a. Default a => Allocated a
Default
           , Semigroup (Allocated a)
Allocated a
Semigroup (Allocated a)
-> Allocated a
-> (Allocated a -> Allocated a -> Allocated a)
-> ([Allocated a] -> Allocated a)
-> Monoid (Allocated a)
[Allocated a] -> Allocated a
Allocated a -> Allocated a -> Allocated a
forall a.
Semigroup a -> a -> (a -> a -> a) -> ([a] -> a) -> Monoid a
forall a. Monoid a => Semigroup (Allocated a)
forall a. Monoid a => Allocated a
forall a. Monoid a => [Allocated a] -> Allocated a
forall a. Monoid a => Allocated a -> Allocated a -> Allocated a
mconcat :: [Allocated a] -> Allocated a
$cmconcat :: forall a. Monoid a => [Allocated a] -> Allocated a
mappend :: Allocated a -> Allocated a -> Allocated a
$cmappend :: forall a. Monoid a => Allocated a -> Allocated a -> Allocated a
mempty :: Allocated a
$cmempty :: forall a. Monoid a => Allocated a
$cp1Monoid :: forall a. Monoid a => Semigroup (Allocated a)
Monoid
           , b -> Allocated a -> Allocated a
NonEmpty (Allocated a) -> Allocated a
Allocated a -> Allocated a -> Allocated a
(Allocated a -> Allocated a -> Allocated a)
-> (NonEmpty (Allocated a) -> Allocated a)
-> (forall b. Integral b => b -> Allocated a -> Allocated a)
-> Semigroup (Allocated a)
forall b. Integral b => b -> Allocated a -> Allocated a
forall a. Semigroup a => NonEmpty (Allocated a) -> Allocated a
forall a. Semigroup a => Allocated a -> Allocated a -> Allocated a
forall a b.
(Semigroup a, Integral b) =>
b -> Allocated a -> Allocated a
forall a.
(a -> a -> a)
-> (NonEmpty a -> a)
-> (forall b. Integral b => b -> a -> a)
-> Semigroup a
stimes :: b -> Allocated a -> Allocated a
$cstimes :: forall a b.
(Semigroup a, Integral b) =>
b -> Allocated a -> Allocated a
sconcat :: NonEmpty (Allocated a) -> Allocated a
$csconcat :: forall a. Semigroup a => NonEmpty (Allocated a) -> Allocated a
<> :: Allocated a -> Allocated a -> Allocated a
$c<> :: forall a. Semigroup a => Allocated a -> Allocated a -> Allocated a
Semigroup
           , Typeable
           , (forall x. Allocated a -> Rep (Allocated a) x)
-> (forall x. Rep (Allocated a) x -> Allocated a)
-> Generic (Allocated a)
forall x. Rep (Allocated a) x -> Allocated a
forall x. Allocated a -> Rep (Allocated a) x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
forall a x. Rep (Allocated a) x -> Allocated a
forall a x. Allocated a -> Rep (Allocated a) x
$cto :: forall a x. Rep (Allocated a) x -> Allocated a
$cfrom :: forall a x. Allocated a -> Rep (Allocated a) x
Generic
           , (forall a. Allocated a -> Rep1 Allocated a)
-> (forall a. Rep1 Allocated a -> Allocated a)
-> Generic1 Allocated
forall a. Rep1 Allocated a -> Allocated a
forall a. Allocated a -> Rep1 Allocated a
forall k (f :: k -> *).
(forall (a :: k). f a -> Rep1 f a)
-> (forall (a :: k). Rep1 f a -> f a) -> Generic1 f
$cto1 :: forall a. Rep1 Allocated a -> Allocated a
$cfrom1 :: forall a. Allocated a -> Rep1 Allocated a
Generic1
           , g -> (Allocated a, g)
g -> [Allocated a]
(Allocated a, Allocated a) -> g -> (Allocated a, g)
(Allocated a, Allocated a) -> g -> [Allocated a]
(forall g.
 RandomGen g =>
 (Allocated a, Allocated a) -> g -> (Allocated a, g))
-> (forall g. RandomGen g => g -> (Allocated a, g))
-> (forall g.
    RandomGen g =>
    (Allocated a, Allocated a) -> g -> [Allocated a])
-> (forall g. RandomGen g => g -> [Allocated a])
-> Random (Allocated a)
forall a g. (Random a, RandomGen g) => g -> [Allocated a]
forall a g. (Random a, RandomGen g) => g -> (Allocated a, g)
forall a g.
(Random a, RandomGen g) =>
(Allocated a, Allocated a) -> g -> [Allocated a]
forall a g.
(Random a, RandomGen g) =>
(Allocated a, Allocated a) -> g -> (Allocated a, g)
forall g. RandomGen g => g -> [Allocated a]
forall g. RandomGen g => g -> (Allocated a, g)
forall g.
RandomGen g =>
(Allocated a, Allocated a) -> g -> [Allocated a]
forall g.
RandomGen g =>
(Allocated a, Allocated a) -> g -> (Allocated a, g)
forall a.
(forall g. RandomGen g => (a, a) -> g -> (a, g))
-> (forall g. RandomGen g => g -> (a, g))
-> (forall g. RandomGen g => (a, a) -> g -> [a])
-> (forall g. RandomGen g => g -> [a])
-> Random a
randoms :: g -> [Allocated a]
$crandoms :: forall a g. (Random a, RandomGen g) => g -> [Allocated a]
randomRs :: (Allocated a, Allocated a) -> g -> [Allocated a]
$crandomRs :: forall a g.
(Random a, RandomGen g) =>
(Allocated a, Allocated a) -> g -> [Allocated a]
random :: g -> (Allocated a, g)
$crandom :: forall a g. (Random a, RandomGen g) => g -> (Allocated a, g)
randomR :: (Allocated a, Allocated a) -> g -> (Allocated a, g)
$crandomR :: forall a g.
(Random a, RandomGen g) =>
(Allocated a, Allocated a) -> g -> (Allocated a, g)
Random
           , Gen (Allocated a)
Gen (Allocated a)
-> (Allocated a -> [Allocated a]) -> Arbitrary (Allocated a)
Allocated a -> [Allocated a]
forall a. Arbitrary a => Gen (Allocated a)
forall a. Arbitrary a => Allocated a -> [Allocated a]
forall a. Gen a -> (a -> [a]) -> Arbitrary a
shrink :: Allocated a -> [Allocated a]
$cshrink :: forall a. Arbitrary a => Allocated a -> [Allocated a]
arbitrary :: Gen (Allocated a)
$carbitrary :: forall a. Arbitrary a => Gen (Allocated a)
Arbitrary
           , Allocated a
Allocated a -> Allocated a -> Bounded (Allocated a)
forall a. a -> a -> Bounded a
forall a. Bounded a => Allocated a
maxBound :: Allocated a
$cmaxBound :: forall a. Bounded a => Allocated a
minBound :: Allocated a
$cminBound :: forall a. Bounded a => Allocated a
Bounded
           , Int -> Allocated a
Allocated a -> Int
Allocated a -> [Allocated a]
Allocated a -> Allocated a
Allocated a -> Allocated a -> [Allocated a]
Allocated a -> Allocated a -> Allocated a -> [Allocated a]
(Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Int -> Allocated a)
-> (Allocated a -> Int)
-> (Allocated a -> [Allocated a])
-> (Allocated a -> Allocated a -> [Allocated a])
-> (Allocated a -> Allocated a -> [Allocated a])
-> (Allocated a -> Allocated a -> Allocated a -> [Allocated a])
-> Enum (Allocated a)
forall a. Enum a => Int -> Allocated a
forall a. Enum a => Allocated a -> Int
forall a. Enum a => Allocated a -> [Allocated a]
forall a. Enum a => Allocated a -> Allocated a
forall a. Enum a => Allocated a -> Allocated a -> [Allocated a]
forall a.
Enum a =>
Allocated a -> Allocated a -> Allocated a -> [Allocated a]
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: Allocated a -> Allocated a -> Allocated a -> [Allocated a]
$cenumFromThenTo :: forall a.
Enum a =>
Allocated a -> Allocated a -> Allocated a -> [Allocated a]
enumFromTo :: Allocated a -> Allocated a -> [Allocated a]
$cenumFromTo :: forall a. Enum a => Allocated a -> Allocated a -> [Allocated a]
enumFromThen :: Allocated a -> Allocated a -> [Allocated a]
$cenumFromThen :: forall a. Enum a => Allocated a -> Allocated a -> [Allocated a]
enumFrom :: Allocated a -> [Allocated a]
$cenumFrom :: forall a. Enum a => Allocated a -> [Allocated a]
fromEnum :: Allocated a -> Int
$cfromEnum :: forall a. Enum a => Allocated a -> Int
toEnum :: Int -> Allocated a
$ctoEnum :: forall a. Enum a => Int -> Allocated a
pred :: Allocated a -> Allocated a
$cpred :: forall a. Enum a => Allocated a -> Allocated a
succ :: Allocated a -> Allocated a
$csucc :: forall a. Enum a => Allocated a -> Allocated a
Enum
           , Fractional (Allocated a)
Allocated a
Fractional (Allocated a)
-> Allocated a
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> Floating (Allocated a)
Allocated a -> Allocated a
Allocated a -> Allocated a -> Allocated a
forall a. Floating a => Fractional (Allocated a)
forall a. Floating a => Allocated a
forall a. Floating a => Allocated a -> Allocated a
forall a. Floating a => Allocated a -> Allocated a -> Allocated a
forall a.
Fractional a
-> a
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> Floating a
log1mexp :: Allocated a -> Allocated a
$clog1mexp :: forall a. Floating a => Allocated a -> Allocated a
log1pexp :: Allocated a -> Allocated a
$clog1pexp :: forall a. Floating a => Allocated a -> Allocated a
expm1 :: Allocated a -> Allocated a
$cexpm1 :: forall a. Floating a => Allocated a -> Allocated a
log1p :: Allocated a -> Allocated a
$clog1p :: forall a. Floating a => Allocated a -> Allocated a
atanh :: Allocated a -> Allocated a
$catanh :: forall a. Floating a => Allocated a -> Allocated a
acosh :: Allocated a -> Allocated a
$cacosh :: forall a. Floating a => Allocated a -> Allocated a
asinh :: Allocated a -> Allocated a
$casinh :: forall a. Floating a => Allocated a -> Allocated a
tanh :: Allocated a -> Allocated a
$ctanh :: forall a. Floating a => Allocated a -> Allocated a
cosh :: Allocated a -> Allocated a
$ccosh :: forall a. Floating a => Allocated a -> Allocated a
sinh :: Allocated a -> Allocated a
$csinh :: forall a. Floating a => Allocated a -> Allocated a
atan :: Allocated a -> Allocated a
$catan :: forall a. Floating a => Allocated a -> Allocated a
acos :: Allocated a -> Allocated a
$cacos :: forall a. Floating a => Allocated a -> Allocated a
asin :: Allocated a -> Allocated a
$casin :: forall a. Floating a => Allocated a -> Allocated a
tan :: Allocated a -> Allocated a
$ctan :: forall a. Floating a => Allocated a -> Allocated a
cos :: Allocated a -> Allocated a
$ccos :: forall a. Floating a => Allocated a -> Allocated a
sin :: Allocated a -> Allocated a
$csin :: forall a. Floating a => Allocated a -> Allocated a
logBase :: Allocated a -> Allocated a -> Allocated a
$clogBase :: forall a. Floating a => Allocated a -> Allocated a -> Allocated a
** :: Allocated a -> Allocated a -> Allocated a
$c** :: forall a. Floating a => Allocated a -> Allocated a -> Allocated a
sqrt :: Allocated a -> Allocated a
$csqrt :: forall a. Floating a => Allocated a -> Allocated a
log :: Allocated a -> Allocated a
$clog :: forall a. Floating a => Allocated a -> Allocated a
exp :: Allocated a -> Allocated a
$cexp :: forall a. Floating a => Allocated a -> Allocated a
pi :: Allocated a
$cpi :: forall a. Floating a => Allocated a
$cp1Floating :: forall a. Floating a => Fractional (Allocated a)
Floating
           , Num (Allocated a)
Num (Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Rational -> Allocated a)
-> Fractional (Allocated a)
Rational -> Allocated a
Allocated a -> Allocated a
Allocated a -> Allocated a -> Allocated a
forall a. Fractional a => Num (Allocated a)
forall a. Fractional a => Rational -> Allocated a
forall a. Fractional a => Allocated a -> Allocated a
forall a. Fractional a => Allocated a -> Allocated a -> Allocated a
forall a.
Num a
-> (a -> a -> a) -> (a -> a) -> (Rational -> a) -> Fractional a
fromRational :: Rational -> Allocated a
$cfromRational :: forall a. Fractional a => Rational -> Allocated a
recip :: Allocated a -> Allocated a
$crecip :: forall a. Fractional a => Allocated a -> Allocated a
/ :: Allocated a -> Allocated a -> Allocated a
$c/ :: forall a. Fractional a => Allocated a -> Allocated a -> Allocated a
$cp1Fractional :: forall a. Fractional a => Num (Allocated a)
Fractional
           , Enum (Allocated a)
Real (Allocated a)
Real (Allocated a)
-> Enum (Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a -> (Allocated a, Allocated a))
-> (Allocated a -> Allocated a -> (Allocated a, Allocated a))
-> (Allocated a -> Integer)
-> Integral (Allocated a)
Allocated a -> Integer
Allocated a -> Allocated a -> (Allocated a, Allocated a)
Allocated a -> Allocated a -> Allocated a
forall a. Integral a => Enum (Allocated a)
forall a. Integral a => Real (Allocated a)
forall a. Integral a => Allocated a -> Integer
forall a.
Integral a =>
Allocated a -> Allocated a -> (Allocated a, Allocated a)
forall a. Integral a => Allocated a -> Allocated a -> Allocated a
forall a.
Real a
-> Enum a
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> (a, a))
-> (a -> a -> (a, a))
-> (a -> Integer)
-> Integral a
toInteger :: Allocated a -> Integer
$ctoInteger :: forall a. Integral a => Allocated a -> Integer
divMod :: Allocated a -> Allocated a -> (Allocated a, Allocated a)
$cdivMod :: forall a.
Integral a =>
Allocated a -> Allocated a -> (Allocated a, Allocated a)
quotRem :: Allocated a -> Allocated a -> (Allocated a, Allocated a)
$cquotRem :: forall a.
Integral a =>
Allocated a -> Allocated a -> (Allocated a, Allocated a)
mod :: Allocated a -> Allocated a -> Allocated a
$cmod :: forall a. Integral a => Allocated a -> Allocated a -> Allocated a
div :: Allocated a -> Allocated a -> Allocated a
$cdiv :: forall a. Integral a => Allocated a -> Allocated a -> Allocated a
rem :: Allocated a -> Allocated a -> Allocated a
$crem :: forall a. Integral a => Allocated a -> Allocated a -> Allocated a
quot :: Allocated a -> Allocated a -> Allocated a
$cquot :: forall a. Integral a => Allocated a -> Allocated a -> Allocated a
$cp2Integral :: forall a. Integral a => Enum (Allocated a)
$cp1Integral :: forall a. Integral a => Real (Allocated a)
Integral
           , Integer -> Allocated a
Allocated a -> Allocated a
Allocated a -> Allocated a -> Allocated a
(Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Integer -> Allocated a)
-> Num (Allocated a)
forall a. Num a => Integer -> Allocated a
forall a. Num a => Allocated a -> Allocated a
forall a. Num a => Allocated a -> Allocated a -> Allocated a
forall a.
(a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> a)
-> (a -> a)
-> (Integer -> a)
-> Num a
fromInteger :: Integer -> Allocated a
$cfromInteger :: forall a. Num a => Integer -> Allocated a
signum :: Allocated a -> Allocated a
$csignum :: forall a. Num a => Allocated a -> Allocated a
abs :: Allocated a -> Allocated a
$cabs :: forall a. Num a => Allocated a -> Allocated a
negate :: Allocated a -> Allocated a
$cnegate :: forall a. Num a => Allocated a -> Allocated a
* :: Allocated a -> Allocated a -> Allocated a
$c* :: forall a. Num a => Allocated a -> Allocated a -> Allocated a
- :: Allocated a -> Allocated a -> Allocated a
$c- :: forall a. Num a => Allocated a -> Allocated a -> Allocated a
+ :: Allocated a -> Allocated a -> Allocated a
$c+ :: forall a. Num a => Allocated a -> Allocated a -> Allocated a
Num
           , Num (Allocated a)
Ord (Allocated a)
Num (Allocated a)
-> Ord (Allocated a)
-> (Allocated a -> Rational)
-> Real (Allocated a)
Allocated a -> Rational
forall a. Num a -> Ord a -> (a -> Rational) -> Real a
forall a. Real a => Num (Allocated a)
forall a. Real a => Ord (Allocated a)
forall a. Real a => Allocated a -> Rational
toRational :: Allocated a -> Rational
$ctoRational :: forall a. Real a => Allocated a -> Rational
$cp2Real :: forall a. Real a => Ord (Allocated a)
$cp1Real :: forall a. Real a => Num (Allocated a)
Real
           , Floating (Allocated a)
RealFrac (Allocated a)
RealFrac (Allocated a)
-> Floating (Allocated a)
-> (Allocated a -> Integer)
-> (Allocated a -> Int)
-> (Allocated a -> (Int, Int))
-> (Allocated a -> (Integer, Int))
-> (Integer -> Int -> Allocated a)
-> (Allocated a -> Int)
-> (Allocated a -> Allocated a)
-> (Int -> Allocated a -> Allocated a)
-> (Allocated a -> Bool)
-> (Allocated a -> Bool)
-> (Allocated a -> Bool)
-> (Allocated a -> Bool)
-> (Allocated a -> Bool)
-> (Allocated a -> Allocated a -> Allocated a)
-> RealFloat (Allocated a)
Int -> Allocated a -> Allocated a
Integer -> Int -> Allocated a
Allocated a -> Bool
Allocated a -> Int
Allocated a -> Integer
Allocated a -> (Int, Int)
Allocated a -> (Integer, Int)
Allocated a -> Allocated a
Allocated a -> Allocated a -> Allocated a
forall a. RealFloat a => Floating (Allocated a)
forall a. RealFloat a => RealFrac (Allocated a)
forall a. RealFloat a => Int -> Allocated a -> Allocated a
forall a. RealFloat a => Integer -> Int -> Allocated a
forall a. RealFloat a => Allocated a -> Bool
forall a. RealFloat a => Allocated a -> Int
forall a. RealFloat a => Allocated a -> Integer
forall a. RealFloat a => Allocated a -> (Int, Int)
forall a. RealFloat a => Allocated a -> (Integer, Int)
forall a. RealFloat a => Allocated a -> Allocated a
forall a. RealFloat a => Allocated a -> Allocated a -> Allocated a
forall a.
RealFrac a
-> Floating a
-> (a -> Integer)
-> (a -> Int)
-> (a -> (Int, Int))
-> (a -> (Integer, Int))
-> (Integer -> Int -> a)
-> (a -> Int)
-> (a -> a)
-> (Int -> a -> a)
-> (a -> Bool)
-> (a -> Bool)
-> (a -> Bool)
-> (a -> Bool)
-> (a -> Bool)
-> (a -> a -> a)
-> RealFloat a
atan2 :: Allocated a -> Allocated a -> Allocated a
$catan2 :: forall a. RealFloat a => Allocated a -> Allocated a -> Allocated a
isIEEE :: Allocated a -> Bool
$cisIEEE :: forall a. RealFloat a => Allocated a -> Bool
isNegativeZero :: Allocated a -> Bool
$cisNegativeZero :: forall a. RealFloat a => Allocated a -> Bool
isDenormalized :: Allocated a -> Bool
$cisDenormalized :: forall a. RealFloat a => Allocated a -> Bool
isInfinite :: Allocated a -> Bool
$cisInfinite :: forall a. RealFloat a => Allocated a -> Bool
isNaN :: Allocated a -> Bool
$cisNaN :: forall a. RealFloat a => Allocated a -> Bool
scaleFloat :: Int -> Allocated a -> Allocated a
$cscaleFloat :: forall a. RealFloat a => Int -> Allocated a -> Allocated a
significand :: Allocated a -> Allocated a
$csignificand :: forall a. RealFloat a => Allocated a -> Allocated a
exponent :: Allocated a -> Int
$cexponent :: forall a. RealFloat a => Allocated a -> Int
encodeFloat :: Integer -> Int -> Allocated a
$cencodeFloat :: forall a. RealFloat a => Integer -> Int -> Allocated a
decodeFloat :: Allocated a -> (Integer, Int)
$cdecodeFloat :: forall a. RealFloat a => Allocated a -> (Integer, Int)
floatRange :: Allocated a -> (Int, Int)
$cfloatRange :: forall a. RealFloat a => Allocated a -> (Int, Int)
floatDigits :: Allocated a -> Int
$cfloatDigits :: forall a. RealFloat a => Allocated a -> Int
floatRadix :: Allocated a -> Integer
$cfloatRadix :: forall a. RealFloat a => Allocated a -> Integer
$cp2RealFloat :: forall a. RealFloat a => Floating (Allocated a)
$cp1RealFloat :: forall a. RealFloat a => RealFrac (Allocated a)
RealFloat
           , Fractional (Allocated a)
Real (Allocated a)
Real (Allocated a)
-> Fractional (Allocated a)
-> (forall b. Integral b => Allocated a -> (b, Allocated a))
-> (forall b. Integral b => Allocated a -> b)
-> (forall b. Integral b => Allocated a -> b)
-> (forall b. Integral b => Allocated a -> b)
-> (forall b. Integral b => Allocated a -> b)
-> RealFrac (Allocated a)
Allocated a -> b
Allocated a -> b
Allocated a -> b
Allocated a -> b
Allocated a -> (b, Allocated a)
forall b. Integral b => Allocated a -> b
forall b. Integral b => Allocated a -> (b, Allocated a)
forall a.
Real a
-> Fractional a
-> (forall b. Integral b => a -> (b, a))
-> (forall b. Integral b => a -> b)
-> (forall b. Integral b => a -> b)
-> (forall b. Integral b => a -> b)
-> (forall b. Integral b => a -> b)
-> RealFrac a
forall a. RealFrac a => Fractional (Allocated a)
forall a. RealFrac a => Real (Allocated a)
forall a b. (RealFrac a, Integral b) => Allocated a -> b
forall a b.
(RealFrac a, Integral b) =>
Allocated a -> (b, Allocated a)
floor :: Allocated a -> b
$cfloor :: forall a b. (RealFrac a, Integral b) => Allocated a -> b
ceiling :: Allocated a -> b
$cceiling :: forall a b. (RealFrac a, Integral b) => Allocated a -> b
round :: Allocated a -> b
$cround :: forall a b. (RealFrac a, Integral b) => Allocated a -> b
truncate :: Allocated a -> b
$ctruncate :: forall a b. (RealFrac a, Integral b) => Allocated a -> b
properFraction :: Allocated a -> (b, Allocated a)
$cproperFraction :: forall a b.
(RealFrac a, Integral b) =>
Allocated a -> (b, Allocated a)
$cp2RealFrac :: forall a. RealFrac a => Fractional (Allocated a)
$cp1RealFrac :: forall a. RealFrac a => Real (Allocated a)
RealFrac
           , Ord (Allocated a)
Ord (Allocated a)
-> ((Allocated a, Allocated a) -> [Allocated a])
-> ((Allocated a, Allocated a) -> Allocated a -> Int)
-> ((Allocated a, Allocated a) -> Allocated a -> Int)
-> ((Allocated a, Allocated a) -> Allocated a -> Bool)
-> ((Allocated a, Allocated a) -> Int)
-> ((Allocated a, Allocated a) -> Int)
-> Ix (Allocated a)
(Allocated a, Allocated a) -> Int
(Allocated a, Allocated a) -> [Allocated a]
(Allocated a, Allocated a) -> Allocated a -> Bool
(Allocated a, Allocated a) -> Allocated a -> Int
forall a.
Ord a
-> ((a, a) -> [a])
-> ((a, a) -> a -> Int)
-> ((a, a) -> a -> Int)
-> ((a, a) -> a -> Bool)
-> ((a, a) -> Int)
-> ((a, a) -> Int)
-> Ix a
forall a. Ix a => Ord (Allocated a)
forall a. Ix a => (Allocated a, Allocated a) -> Int
forall a. Ix a => (Allocated a, Allocated a) -> [Allocated a]
forall a. Ix a => (Allocated a, Allocated a) -> Allocated a -> Bool
forall a. Ix a => (Allocated a, Allocated a) -> Allocated a -> Int
unsafeRangeSize :: (Allocated a, Allocated a) -> Int
$cunsafeRangeSize :: forall a. Ix a => (Allocated a, Allocated a) -> Int
rangeSize :: (Allocated a, Allocated a) -> Int
$crangeSize :: forall a. Ix a => (Allocated a, Allocated a) -> Int
inRange :: (Allocated a, Allocated a) -> Allocated a -> Bool
$cinRange :: forall a. Ix a => (Allocated a, Allocated a) -> Allocated a -> Bool
unsafeIndex :: (Allocated a, Allocated a) -> Allocated a -> Int
$cunsafeIndex :: forall a. Ix a => (Allocated a, Allocated a) -> Allocated a -> Int
index :: (Allocated a, Allocated a) -> Allocated a -> Int
$cindex :: forall a. Ix a => (Allocated a, Allocated a) -> Allocated a -> Int
range :: (Allocated a, Allocated a) -> [Allocated a]
$crange :: forall a. Ix a => (Allocated a, Allocated a) -> [Allocated a]
$cp1Ix :: forall a. Ix a => Ord (Allocated a)
Ix
           , String -> Allocated a
(String -> Allocated a) -> IsString (Allocated a)
forall a. IsString a => String -> Allocated a
forall a. (String -> a) -> IsString a
fromString :: String -> Allocated a
$cfromString :: forall a. IsString a => String -> Allocated a
IsString
           , Eq (Allocated a)
Allocated a
Eq (Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a -> Allocated a)
-> (Allocated a -> Allocated a)
-> (Allocated a -> Int -> Allocated a)
-> (Allocated a -> Int -> Allocated a)
-> Allocated a
-> (Int -> Allocated a)
-> (Allocated a -> Int -> Allocated a)
-> (Allocated a -> Int -> Allocated a)
-> (Allocated a -> Int -> Allocated a)
-> (Allocated a -> Int -> Bool)
-> (Allocated a -> Maybe Int)
-> (Allocated a -> Int)
-> (Allocated a -> Bool)
-> (Allocated a -> Int -> Allocated a)
-> (Allocated a -> Int -> Allocated a)
-> (Allocated a -> Int -> Allocated a)
-> (Allocated a -> Int -> Allocated a)
-> (Allocated a -> Int -> Allocated a)
-> (Allocated a -> Int -> Allocated a)
-> (Allocated a -> Int)
-> Bits (Allocated a)
Int -> Allocated a
Allocated a -> Bool
Allocated a -> Int
Allocated a -> Maybe Int
Allocated a -> Allocated a
Allocated a -> Int -> Bool
Allocated a -> Int -> Allocated a
Allocated a -> Allocated a -> Allocated a
forall a.
Eq a
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> a
-> (Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> Bool)
-> (a -> Maybe Int)
-> (a -> Int)
-> (a -> Bool)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int)
-> Bits a
forall a. Bits a => Eq (Allocated a)
forall a. Bits a => Allocated a
forall a. Bits a => Int -> Allocated a
forall a. Bits a => Allocated a -> Bool
forall a. Bits a => Allocated a -> Int
forall a. Bits a => Allocated a -> Maybe Int
forall a. Bits a => Allocated a -> Allocated a
forall a. Bits a => Allocated a -> Int -> Bool
forall a. Bits a => Allocated a -> Int -> Allocated a
forall a. Bits a => Allocated a -> Allocated a -> Allocated a
popCount :: Allocated a -> Int
$cpopCount :: forall a. Bits a => Allocated a -> Int
rotateR :: Allocated a -> Int -> Allocated a
$crotateR :: forall a. Bits a => Allocated a -> Int -> Allocated a
rotateL :: Allocated a -> Int -> Allocated a
$crotateL :: forall a. Bits a => Allocated a -> Int -> Allocated a
unsafeShiftR :: Allocated a -> Int -> Allocated a
$cunsafeShiftR :: forall a. Bits a => Allocated a -> Int -> Allocated a
shiftR :: Allocated a -> Int -> Allocated a
$cshiftR :: forall a. Bits a => Allocated a -> Int -> Allocated a
unsafeShiftL :: Allocated a -> Int -> Allocated a
$cunsafeShiftL :: forall a. Bits a => Allocated a -> Int -> Allocated a
shiftL :: Allocated a -> Int -> Allocated a
$cshiftL :: forall a. Bits a => Allocated a -> Int -> Allocated a
isSigned :: Allocated a -> Bool
$cisSigned :: forall a. Bits a => Allocated a -> Bool
bitSize :: Allocated a -> Int
$cbitSize :: forall a. Bits a => Allocated a -> Int
bitSizeMaybe :: Allocated a -> Maybe Int
$cbitSizeMaybe :: forall a. Bits a => Allocated a -> Maybe Int
testBit :: Allocated a -> Int -> Bool
$ctestBit :: forall a. Bits a => Allocated a -> Int -> Bool
complementBit :: Allocated a -> Int -> Allocated a
$ccomplementBit :: forall a. Bits a => Allocated a -> Int -> Allocated a
clearBit :: Allocated a -> Int -> Allocated a
$cclearBit :: forall a. Bits a => Allocated a -> Int -> Allocated a
setBit :: Allocated a -> Int -> Allocated a
$csetBit :: forall a. Bits a => Allocated a -> Int -> Allocated a
bit :: Int -> Allocated a
$cbit :: forall a. Bits a => Int -> Allocated a
zeroBits :: Allocated a
$czeroBits :: forall a. Bits a => Allocated a
rotate :: Allocated a -> Int -> Allocated a
$crotate :: forall a. Bits a => Allocated a -> Int -> Allocated a
shift :: Allocated a -> Int -> Allocated a
$cshift :: forall a. Bits a => Allocated a -> Int -> Allocated a
complement :: Allocated a -> Allocated a
$ccomplement :: forall a. Bits a => Allocated a -> Allocated a
xor :: Allocated a -> Allocated a -> Allocated a
$cxor :: forall a. Bits a => Allocated a -> Allocated a -> Allocated a
.|. :: Allocated a -> Allocated a -> Allocated a
$c.|. :: forall a. Bits a => Allocated a -> Allocated a -> Allocated a
.&. :: Allocated a -> Allocated a -> Allocated a
$c.&. :: forall a. Bits a => Allocated a -> Allocated a -> Allocated a
$cp1Bits :: forall a. Bits a => Eq (Allocated a)
Bits
           , Bits (Allocated a)
Bits (Allocated a)
-> (Allocated a -> Int)
-> (Allocated a -> Int)
-> (Allocated a -> Int)
-> FiniteBits (Allocated a)
Allocated a -> Int
forall b.
Bits b -> (b -> Int) -> (b -> Int) -> (b -> Int) -> FiniteBits b
forall a. FiniteBits a => Bits (Allocated a)
forall a. FiniteBits a => Allocated a -> Int
countTrailingZeros :: Allocated a -> Int
$ccountTrailingZeros :: forall a. FiniteBits a => Allocated a -> Int
countLeadingZeros :: Allocated a -> Int
$ccountLeadingZeros :: forall a. FiniteBits a => Allocated a -> Int
finiteBitSize :: Allocated a -> Int
$cfiniteBitSize :: forall a. FiniteBits a => Allocated a -> Int
$cp1FiniteBits :: forall a. FiniteBits a => Bits (Allocated a)
FiniteBits
           )
  deriving ( (a -> b -> Bool) -> Allocated a -> Allocated b -> Bool
(forall a b.
 (a -> b -> Bool) -> Allocated a -> Allocated b -> Bool)
-> Eq1 Allocated
forall a b. (a -> b -> Bool) -> Allocated a -> Allocated b -> Bool
forall (f :: * -> *).
(forall a b. (a -> b -> Bool) -> f a -> f b -> Bool) -> Eq1 f
liftEq :: (a -> b -> Bool) -> Allocated a -> Allocated b -> Bool
$cliftEq :: forall a b. (a -> b -> Bool) -> Allocated a -> Allocated b -> Bool
Eq1
           , Eq1 Allocated
Eq1 Allocated
-> (forall a b.
    (a -> b -> Ordering) -> Allocated a -> Allocated b -> Ordering)
-> Ord1 Allocated
(a -> b -> Ordering) -> Allocated a -> Allocated b -> Ordering
forall a b.
(a -> b -> Ordering) -> Allocated a -> Allocated b -> Ordering
forall (f :: * -> *).
Eq1 f
-> (forall a b. (a -> b -> Ordering) -> f a -> f b -> Ordering)
-> Ord1 f
liftCompare :: (a -> b -> Ordering) -> Allocated a -> Allocated b -> Ordering
$cliftCompare :: forall a b.
(a -> b -> Ordering) -> Allocated a -> Allocated b -> Ordering
$cp1Ord1 :: Eq1 Allocated
Ord1
           , ReadPrec a -> ReadPrec [a] -> ReadPrec (Allocated a)
ReadPrec a -> ReadPrec [a] -> ReadPrec [Allocated a]
(Int -> ReadS a) -> ReadS [a] -> Int -> ReadS (Allocated a)
(Int -> ReadS a) -> ReadS [a] -> ReadS [Allocated a]
(forall a.
 (Int -> ReadS a) -> ReadS [a] -> Int -> ReadS (Allocated a))
-> (forall a. (Int -> ReadS a) -> ReadS [a] -> ReadS [Allocated a])
-> (forall a. ReadPrec a -> ReadPrec [a] -> ReadPrec (Allocated a))
-> (forall a. ReadPrec a -> ReadPrec [a] -> ReadPrec [Allocated a])
-> Read1 Allocated
forall a. ReadPrec a -> ReadPrec [a] -> ReadPrec [Allocated a]
forall a. ReadPrec a -> ReadPrec [a] -> ReadPrec (Allocated a)
forall a.
(Int -> ReadS a) -> ReadS [a] -> Int -> ReadS (Allocated a)
forall a. (Int -> ReadS a) -> ReadS [a] -> ReadS [Allocated a]
forall (f :: * -> *).
(forall a. (Int -> ReadS a) -> ReadS [a] -> Int -> ReadS (f a))
-> (forall a. (Int -> ReadS a) -> ReadS [a] -> ReadS [f a])
-> (forall a. ReadPrec a -> ReadPrec [a] -> ReadPrec (f a))
-> (forall a. ReadPrec a -> ReadPrec [a] -> ReadPrec [f a])
-> Read1 f
liftReadListPrec :: ReadPrec a -> ReadPrec [a] -> ReadPrec [Allocated a]
$cliftReadListPrec :: forall a. ReadPrec a -> ReadPrec [a] -> ReadPrec [Allocated a]
liftReadPrec :: ReadPrec a -> ReadPrec [a] -> ReadPrec (Allocated a)
$cliftReadPrec :: forall a. ReadPrec a -> ReadPrec [a] -> ReadPrec (Allocated a)
liftReadList :: (Int -> ReadS a) -> ReadS [a] -> ReadS [Allocated a]
$cliftReadList :: forall a. (Int -> ReadS a) -> ReadS [a] -> ReadS [Allocated a]
liftReadsPrec :: (Int -> ReadS a) -> ReadS [a] -> Int -> ReadS (Allocated a)
$cliftReadsPrec :: forall a.
(Int -> ReadS a) -> ReadS [a] -> Int -> ReadS (Allocated a)
Read1
           , (Int -> a -> ShowS)
-> ([a] -> ShowS) -> Int -> Allocated a -> ShowS
(Int -> a -> ShowS) -> ([a] -> ShowS) -> [Allocated a] -> ShowS
(forall a.
 (Int -> a -> ShowS)
 -> ([a] -> ShowS) -> Int -> Allocated a -> ShowS)
-> (forall a.
    (Int -> a -> ShowS) -> ([a] -> ShowS) -> [Allocated a] -> ShowS)
-> Show1 Allocated
forall a.
(Int -> a -> ShowS)
-> ([a] -> ShowS) -> Int -> Allocated a -> ShowS
forall a.
(Int -> a -> ShowS) -> ([a] -> ShowS) -> [Allocated a] -> ShowS
forall (f :: * -> *).
(forall a.
 (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> f a -> ShowS)
-> (forall a.
    (Int -> a -> ShowS) -> ([a] -> ShowS) -> [f a] -> ShowS)
-> Show1 f
liftShowList :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> [Allocated a] -> ShowS
$cliftShowList :: forall a.
(Int -> a -> ShowS) -> ([a] -> ShowS) -> [Allocated a] -> ShowS
liftShowsPrec :: (Int -> a -> ShowS)
-> ([a] -> ShowS) -> Int -> Allocated a -> ShowS
$cliftShowsPrec :: forall a.
(Int -> a -> ShowS)
-> ([a] -> ShowS) -> Int -> Allocated a -> ShowS
Show1
           , a -> Allocated a
(forall a. a -> Allocated a) -> Pointed Allocated
forall a. a -> Allocated a
forall (p :: * -> *). (forall a. a -> p a) -> Pointed p
point :: a -> Allocated a
$cpoint :: forall a. a -> Allocated a
Pointed
           , Allocated a -> a
(forall a. Allocated a -> a) -> Copointed Allocated
forall a. Allocated a -> a
forall (p :: * -> *). (forall a. p a -> a) -> Copointed p
copoint :: Allocated a -> a
$ccopoint :: forall a. Allocated a -> a
Copointed
           , Functor Allocated
a -> Allocated a
Functor Allocated
-> (forall a. a -> Allocated a)
-> (forall a b. Allocated (a -> b) -> Allocated a -> Allocated b)
-> (forall a b c.
    (a -> b -> c) -> Allocated a -> Allocated b -> Allocated c)
-> (forall a b. Allocated a -> Allocated b -> Allocated b)
-> (forall a b. Allocated a -> Allocated b -> Allocated a)
-> Applicative Allocated
Allocated a -> Allocated b -> Allocated b
Allocated a -> Allocated b -> Allocated a
Allocated (a -> b) -> Allocated a -> Allocated b
(a -> b -> c) -> Allocated a -> Allocated b -> Allocated c
forall a. a -> Allocated a
forall a b. Allocated a -> Allocated b -> Allocated a
forall a b. Allocated a -> Allocated b -> Allocated b
forall a b. Allocated (a -> b) -> Allocated a -> Allocated b
forall a b c.
(a -> b -> c) -> Allocated a -> Allocated b -> Allocated c
forall (f :: * -> *).
Functor f
-> (forall a. a -> f a)
-> (forall a b. f (a -> b) -> f a -> f b)
-> (forall a b c. (a -> b -> c) -> f a -> f b -> f c)
-> (forall a b. f a -> f b -> f b)
-> (forall a b. f a -> f b -> f a)
-> Applicative f
<* :: Allocated a -> Allocated b -> Allocated a
$c<* :: forall a b. Allocated a -> Allocated b -> Allocated a
*> :: Allocated a -> Allocated b -> Allocated b
$c*> :: forall a b. Allocated a -> Allocated b -> Allocated b
liftA2 :: (a -> b -> c) -> Allocated a -> Allocated b -> Allocated c
$cliftA2 :: forall a b c.
(a -> b -> c) -> Allocated a -> Allocated b -> Allocated c
<*> :: Allocated (a -> b) -> Allocated a -> Allocated b
$c<*> :: forall a b. Allocated (a -> b) -> Allocated a -> Allocated b
pure :: a -> Allocated a
$cpure :: forall a. a -> Allocated a
$cp1Applicative :: Functor Allocated
Applicative
           , Monad Allocated
Monad Allocated
-> (forall a. (a -> Allocated a) -> Allocated a)
-> MonadFix Allocated
(a -> Allocated a) -> Allocated a
forall a. (a -> Allocated a) -> Allocated a
forall (m :: * -> *).
Monad m -> (forall a. (a -> m a) -> m a) -> MonadFix m
mfix :: (a -> Allocated a) -> Allocated a
$cmfix :: forall a. (a -> Allocated a) -> Allocated a
$cp1MonadFix :: Monad Allocated
MonadFix
           , Applicative Allocated
a -> Allocated a
Applicative Allocated
-> (forall a b. Allocated a -> (a -> Allocated b) -> Allocated b)
-> (forall a b. Allocated a -> Allocated b -> Allocated b)
-> (forall a. a -> Allocated a)
-> Monad Allocated
Allocated a -> (a -> Allocated b) -> Allocated b
Allocated a -> Allocated b -> Allocated b
forall a. a -> Allocated a
forall a b. Allocated a -> Allocated b -> Allocated b
forall a b. Allocated a -> (a -> Allocated b) -> Allocated b
forall (m :: * -> *).
Applicative m
-> (forall a b. m a -> (a -> m b) -> m b)
-> (forall a b. m a -> m b -> m b)
-> (forall a. a -> m a)
-> Monad m
return :: a -> Allocated a
$creturn :: forall a. a -> Allocated a
>> :: Allocated a -> Allocated b -> Allocated b
$c>> :: forall a b. Allocated a -> Allocated b -> Allocated b
>>= :: Allocated a -> (a -> Allocated b) -> Allocated b
$c>>= :: forall a b. Allocated a -> (a -> Allocated b) -> Allocated b
$cp1Monad :: Applicative Allocated
Monad
           , Monad Allocated
Monad Allocated
-> (forall a b. Allocated a -> Allocated b -> Allocated (a, b))
-> (forall a b c.
    (a -> b -> c) -> Allocated a -> Allocated b -> Allocated c)
-> (forall a b. Allocated (a, b) -> (Allocated a, Allocated b))
-> MonadZip Allocated
Allocated a -> Allocated b -> Allocated (a, b)
Allocated (a, b) -> (Allocated a, Allocated b)
(a -> b -> c) -> Allocated a -> Allocated b -> Allocated c
forall a b. Allocated a -> Allocated b -> Allocated (a, b)
forall a b. Allocated (a, b) -> (Allocated a, Allocated b)
forall a b c.
(a -> b -> c) -> Allocated a -> Allocated b -> Allocated c
forall (m :: * -> *).
Monad m
-> (forall a b. m a -> m b -> m (a, b))
-> (forall a b c. (a -> b -> c) -> m a -> m b -> m c)
-> (forall a b. m (a, b) -> (m a, m b))
-> MonadZip m
munzip :: Allocated (a, b) -> (Allocated a, Allocated b)
$cmunzip :: forall a b. Allocated (a, b) -> (Allocated a, Allocated b)
mzipWith :: (a -> b -> c) -> Allocated a -> Allocated b -> Allocated c
$cmzipWith :: forall a b c.
(a -> b -> c) -> Allocated a -> Allocated b -> Allocated c
mzip :: Allocated a -> Allocated b -> Allocated (a, b)
$cmzip :: forall a b. Allocated a -> Allocated b -> Allocated (a, b)
$cp1MonadZip :: Monad Allocated
MonadZip
           , Functor Allocated
Functor Allocated
-> (forall a. Allocated a -> a)
-> (forall a. Allocated a -> Allocated (Allocated a))
-> (forall a b. (Allocated a -> b) -> Allocated a -> Allocated b)
-> Comonad Allocated
Allocated a -> a
Allocated a -> Allocated (Allocated a)
(Allocated a -> b) -> Allocated a -> Allocated b
forall a. Allocated a -> a
forall a. Allocated a -> Allocated (Allocated a)
forall a b. (Allocated a -> b) -> Allocated a -> Allocated b
forall (w :: * -> *).
Functor w
-> (forall a. w a -> a)
-> (forall a. w a -> w (w a))
-> (forall a b. (w a -> b) -> w a -> w b)
-> Comonad w
extend :: (Allocated a -> b) -> Allocated a -> Allocated b
$cextend :: forall a b. (Allocated a -> b) -> Allocated a -> Allocated b
duplicate :: Allocated a -> Allocated (Allocated a)
$cduplicate :: forall a. Allocated a -> Allocated (Allocated a)
extract :: Allocated a -> a
$cextract :: forall a. Allocated a -> a
$cp1Comonad :: Functor Allocated
Comonad
           )
           via Identity

-- | An accessor function for something 'Allocated'.
_theAllocated :: Allocated x -> x
_theAllocated :: Allocated x -> x
_theAllocated (Allocated !x
x) = x
x
{-# INLINE _theAllocated #-}

-- | A lens for something 'Allocated'.
theAllocated :: forall a b p f. (Profunctor p, Functor f) => p a (f b) -> p (Allocated a) (f (Allocated b))
theAllocated :: p a (f b) -> p (Allocated a) (f (Allocated b))
theAllocated = (Allocated a -> a)
-> (f b -> f (Allocated b))
-> p a (f b)
-> p (Allocated a) (f (Allocated b))
forall (p :: * -> * -> *) a b c d.
Profunctor p =>
(a -> b) -> (c -> d) -> p b c -> p a d
dimap Allocated a -> a
forall a. Allocated a -> a
_theAllocated ((b -> Allocated b) -> f b -> f (Allocated b)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap b -> Allocated b
forall a. a -> Allocated a
Allocated)
{-# INLINE theAllocated #-}