Safe Haskell | None |
---|---|
Language | Haskell2010 |
FCI.Base
Description
Dictionaries for base classes.
Synopsis
- data DictEq a = Eq {}
- data DictOrd a = Ord {}
- data DictSemigroup a = Semigroup {}
- data DictMonoid a = Monoid {}
- data DictShow a = Show {}
- data DictRead a = Read {
- _readsPrec :: Int -> ReadS a
- _readList :: ReadS [a]
- _readPrec :: ReadPrec a
- _readListPrec :: ReadPrec [a]
- data DictEnum a = Enum {
- _succ :: a -> a
- _pred :: a -> a
- _toEnum :: Int -> a
- _fromEnum :: a -> Int
- _enumFrom :: a -> [a]
- _enumFromThen :: a -> a -> [a]
- _enumFromTo :: a -> a -> [a]
- _enumFromThenTo :: a -> a -> a -> [a]
- data DictBounded a = Bounded {}
- data DictNum a = Num {}
- data DictReal a = Real {}
- data DictIntegral a = Integral {}
- data DictFractional a = Fractional {}
- data DictFloating a = Floating {
- _Fractional :: Dict (Fractional a)
- _pi :: a
- _exp :: a -> a
- _log :: a -> a
- _sqrt :: a -> a
- (|**) :: a -> a -> a
- _logBase :: a -> a -> a
- _sin :: a -> a
- _cos :: a -> a
- _tan :: a -> a
- _asin :: a -> a
- _acos :: a -> a
- _atan :: a -> a
- _sinh :: a -> a
- _cosh :: a -> a
- _tanh :: a -> a
- _asinh :: a -> a
- _acosh :: a -> a
- _atanh :: a -> a
- _log1p :: a -> a
- _expm1 :: a -> a
- _log1pexp :: a -> a
- _log1mexp :: a -> a
- data DictRealFrac a = RealFrac {}
- data DictRealFloat a = RealFloat {
- _RealFrac :: Dict (RealFrac a)
- _Floating :: Dict (Floating a)
- _floatRadix :: a -> Integer
- _floatDigits :: a -> Int
- _floatRange :: a -> (Int, Int)
- _decodeFloat :: a -> (Integer, Int)
- _encodeFloat :: Integer -> Int -> a
- _exponent :: a -> Int
- _significand :: a -> a
- _scaleFloat :: Int -> a -> a
- _isNaN :: a -> Bool
- _isInfinite :: a -> Bool
- _isDenormalized :: a -> Bool
- _isNegativeZero :: a -> Bool
- _isIEEE :: a -> Bool
- _atan2 :: a -> a -> a
- data DictBits a = Bits {
- _Eq :: Dict (Eq a)
- (|.&.) :: a -> a -> a
- (|.|.) :: a -> a -> a
- _xor :: a -> a -> a
- _complement :: a -> a
- _shift :: a -> Int -> a
- _rotate :: a -> Int -> a
- _zeroBits :: a
- _bit :: Int -> a
- _setBit :: a -> Int -> a
- _clearBit :: a -> Int -> a
- _complementBit :: a -> Int -> a
- _testBit :: a -> Int -> Bool
- _bitSizeMaybe :: a -> Maybe Int
- _bitSize :: a -> Int
- _isSigned :: a -> Bool
- _shiftL :: a -> Int -> a
- _unsafeShiftL :: a -> Int -> a
- _shiftR :: a -> Int -> a
- _unsafeShiftR :: a -> Int -> a
- _rotateL :: a -> Int -> a
- _rotateR :: a -> Int -> a
- _popCount :: a -> Int
- data DictFiniteBits b = FiniteBits {
- _Bits :: Dict (Bits b)
- _finiteBitSize :: b -> Int
- _countLeadingZeros :: b -> Int
- _countTrailingZeros :: b -> Int
- data DictIx a = Ix {
- _Ord :: Dict (Ord a)
- _range :: (a, a) -> [a]
- _index :: (a, a) -> a -> Int
- _unsafeIndex :: (a, a) -> a -> Int
- _inRange :: (a, a) -> a -> Bool
- _rangeSize :: (a, a) -> Int
- _unsafeRangeSize :: (a, a) -> Int
- data DictFunctor (f :: Type -> Type) = Functor {}
- data DictContravariant (f :: Type -> Type) = Contravariant {
- _contramap :: forall a' a. (a' -> a) -> f a -> f a'
- (|>$) :: forall b a. b -> f b -> f a
- data DictApplicative (f :: Type -> Type) = Applicative {}
- data DictAlternative (f :: Type -> Type) = Alternative {
- _Applicative :: Dict (Applicative f)
- _empty :: forall a. f a
- (|<|>) :: forall a. f a -> f a -> f a
- _some :: forall a. f a -> f [a]
- _many :: forall a. f a -> f [a]
- data DictMonad (m :: Type -> Type) = Monad {
- _Applicative :: Dict (Applicative m)
- (|>>=) :: forall a b. m a -> (a -> m b) -> m b
- (|>>) :: forall a b. m a -> m b -> m b
- _return :: forall a. a -> m a
- data DictMonadFail (m :: Type -> Type) = MonadFail {}
- data DictMonadPlus (m :: Type -> Type) = MonadPlus {
- _Alternative :: Dict (Alternative m)
- _Monad :: Dict (Monad m)
- _mzero :: forall a. m a
- _mplus :: forall a. m a -> m a -> m a
- data DictMonadFix (m :: Type -> Type) = MonadFix {}
- data DictFoldable (t :: Type -> Type) = Foldable {
- _fold :: forall m. Monoid m => t m -> m
- _foldMap :: forall m a. Monoid m => (a -> m) -> t a -> m
- _foldMap' :: forall m a. Monoid m => (a -> m) -> t a -> m
- _foldr :: forall a b. (a -> b -> b) -> b -> t a -> b
- _foldr' :: forall a b. (a -> b -> b) -> b -> t a -> b
- _foldl :: forall b a. (b -> a -> b) -> b -> t a -> b
- _foldl' :: forall b a. (b -> a -> b) -> b -> t a -> b
- _foldr1 :: forall a. (a -> a -> a) -> t a -> a
- _foldl1 :: forall a. (a -> a -> a) -> t a -> a
- _toList :: forall a. t a -> [a]
- _null :: forall a. t a -> Bool
- _length :: forall a. t a -> Int
- _elem :: forall a. Eq a => a -> t a -> Bool
- _maximum :: forall a. Ord a => t a -> a
- _minimum :: forall a. Ord a => t a -> a
- _sum :: forall a. Num a => t a -> a
- _product :: forall a. Num a => t a -> a
- data DictTraversable (t :: Type -> Type) = Traversable {
- _Functor :: Dict (Functor t)
- _Foldable :: Dict (Foldable t)
- _traverse :: forall (f :: Type -> Type) a b. Applicative f => (a -> f b) -> t a -> f (t b)
- _sequenceA :: forall (f :: Type -> Type) a. Applicative f => t (f a) -> f (t a)
- _mapM :: forall (m :: Type -> Type) a b. Monad m => (a -> m b) -> t a -> m (t b)
- _sequence :: forall (m :: Type -> Type) a. Monad m => t (m a) -> m (t a)
- data DictBifunctor (p :: Type -> Type -> Type) = Bifunctor {}
- data DictBifoldable (p :: Type -> Type -> Type) = Bifoldable {}
- data DictBitraversable (t :: Type -> Type -> Type) = Bitraversable {
- _Bifunctor :: Dict (Bifunctor t)
- _Bifoldable :: Dict (Bifoldable t)
- _bitraverse :: forall (f :: Type -> Type) a c b d. Applicative f => (a -> f c) -> (b -> f d) -> t a b -> f (t c d)
- data DictException e = Exception {
- _Typeable :: Dict (Typeable e)
- _Show :: Dict (Show e)
- _toException :: e -> SomeException
- _fromException :: SomeException -> Maybe e
- _displayException :: e -> String
- data DictCategory (cat :: k -> k -> Type) = Category {}
- data DictArrow (a :: Type -> Type -> Type) = Arrow {}
- data DictArrowZero (a :: Type -> Type -> Type) = ArrowZero {
- _Arrow :: Dict (Arrow a)
- _zeroArrow :: forall b c. a b c
- data DictArrowPlus (a :: Type -> Type -> Type) = ArrowPlus {
- _ArrowZero :: Dict (ArrowZero a)
- (|<+>) :: forall b c. a b c -> a b c -> a b c
- data DictArrowChoice (a :: Type -> Type -> Type) = ArrowChoice {}
- data DictArrowApply (a :: Type -> Type -> Type) = ArrowApply {}
- data DictArrowLoop (a :: Type -> Type -> Type) = ArrowLoop {}
- data DictStorable a = Storable {}
- fmapFunctor :: (forall a b. (a -> b) -> f a -> f b) -> Dict (Functor f)
- viaFunctor :: forall (f :: Type -> Type) (g :: Type -> Type). (Coercible f g, Functor f) => Dict (Functor g)
- applyApplicative :: (forall a. a -> f a) -> (forall a b. f (a -> b) -> f a -> f b) -> Dict (Applicative f)
- liftA2Applicative :: (forall a. a -> f a) -> (forall a b c. (a -> b -> c) -> f a -> f b -> f c) -> Dict (Applicative f)
- bindMonad :: (forall a. a -> m a) -> (forall a b. m a -> (a -> m b) -> m b) -> Dict (Monad m)
- joinMonad :: (forall a b. (a -> b) -> m a -> m b) -> (forall a. a -> m a) -> (forall a. m (m a) -> m a) -> Dict (Monad m)
Dictionary types
Dictionary type for Eq
Dictionary type for Ord
data DictSemigroup a Source #
Dictionary type for Semigroup
data DictMonoid a Source #
Dictionary type for Monoid
Dictionary type for Show
Dictionary type for Read
Constructors
Read | |
Fields
|
Dictionary type for Enum
Constructors
Enum | |
Fields
|
data DictBounded a Source #
Dictionary type for Bounded
Dictionary type for Num
Dictionary type for Real
data DictIntegral a Source #
Dictionary type for Integral
data DictFloating a Source #
Dictionary type for Floating
Constructors
Floating | |
Fields
|
data DictRealFloat a Source #
Dictionary type for RealFloat
Constructors
RealFloat | |
Fields
|
Dictionary type for Bits
Constructors
Bits | |
Fields
|
data DictFiniteBits b Source #
Dictionary type for FiniteBits
Constructors
FiniteBits | |
Fields
|
Dictionary type for Ix
Constructors
Ix | |
Fields
|
data DictContravariant (f :: Type -> Type) Source #
Dictionary type for Contravariant
Constructors
Contravariant | |
Fields
|
data DictApplicative (f :: Type -> Type) Source #
Dictionary type for Applicative
data DictAlternative (f :: Type -> Type) Source #
Dictionary type for Alternative
Constructors
Alternative | |
Fields
|
data DictMonad (m :: Type -> Type) Source #
Dictionary type for Monad
Constructors
Monad | |
Fields
|
data DictMonadPlus (m :: Type -> Type) Source #
Dictionary type for MonadPlus
Constructors
MonadPlus | |
Fields
|
data DictFoldable (t :: Type -> Type) Source #
Dictionary type for Foldable
Constructors
Foldable | |
Fields
|
data DictTraversable (t :: Type -> Type) Source #
Dictionary type for Traversable
Constructors
Traversable | |
Fields
|
data DictBifoldable (p :: Type -> Type -> Type) Source #
Dictionary type for Bifoldable
Constructors
Bifoldable | |
data DictBitraversable (t :: Type -> Type -> Type) Source #
Dictionary type for Bitraversable
Constructors
Bitraversable | |
Fields
|
data DictException e Source #
Dictionary type for Exception
Constructors
Exception | |
Fields
|
data DictCategory (cat :: k -> k -> Type) Source #
Dictionary type for Category
data DictArrowZero (a :: Type -> Type -> Type) Source #
Dictionary type for ArrowZero
Constructors
ArrowZero | |
Fields
|
data DictArrowPlus (a :: Type -> Type -> Type) Source #
Dictionary type for ArrowPlus
Constructors
ArrowPlus | |
Fields
|
data DictArrowChoice (a :: Type -> Type -> Type) Source #
Dictionary type for ArrowChoice
Constructors
ArrowChoice | |
data DictArrowApply (a :: Type -> Type -> Type) Source #
Dictionary type for ArrowApply
Constructors
ArrowApply | |
Default dictionaries
fmapFunctor :: (forall a b. (a -> b) -> f a -> f b) -> Dict (Functor f) Source #
viaFunctor :: forall (f :: Type -> Type) (g :: Type -> Type). (Coercible f g, Functor f) => Dict (Functor g) Source #
Arguments
:: (forall a. a -> f a) | |
-> (forall a b. f (a -> b) -> f a -> f b) | ( |
-> Dict (Applicative f) |
Default Applicative
dictionary requiring only pure
and (
.<*>
)
Arguments
:: (forall a. a -> f a) | |
-> (forall a b c. (a -> b -> c) -> f a -> f b -> f c) | |
-> Dict (Applicative f) |
Default Applicative
dictionary requiring only pure
and liftA2
.