| Copyright | (C) 2016-2017 Ryan Scott |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Ryan Scott |
| Stability | Provisional |
| Portability | GHC |
| Safe Haskell | Trustworthy |
| Language | Haskell2010 |
Data.Proxied
Contents
- proxied :: forall proxy a b. (a -> b) -> proxy a -> b
- proxyHashed :: forall a b. (a -> b) -> Proxy# a -> b
- unproxied :: forall a b. (Proxy a -> b) -> a -> b
- module Data.Proxy
- bitSizeProxied :: forall proxy a. Bits a => proxy a -> Int
- isSignedProxied :: forall proxy a. Bits a => proxy a -> Bool
- bitSizeMaybeProxied :: forall proxy a. Bits a => proxy a -> Maybe Int
- finiteBitSizeProxied :: forall proxy a. FiniteBits a => proxy a -> Int
- dataTypeOfProxied :: forall proxy a. Data a => proxy a -> DataType
- typeOfProxied :: forall proxy a. Typeable a => proxy a -> TypeRep
- sizeOfProxied :: forall proxy a. Storable a => proxy a -> Int
- alignmentProxied :: forall proxy a. Storable a => proxy a -> Int
- datatypeNameProxied :: forall proxy t d f a. Datatype d => proxy ((t :: k1 -> (* -> *) -> k2 -> *) d f a) -> [Char]
- moduleNameProxied :: forall proxy t d f a. Datatype d => proxy ((t :: k1 -> (* -> *) -> k2 -> *) d f a) -> [Char]
- isNewtypeProxied :: forall proxy t d f a. Datatype d => proxy ((t :: k1 -> (* -> *) -> k2 -> *) d f a) -> Bool
- packageNameProxied :: forall proxy t d f a. Datatype d => proxy ((t :: k1 -> (* -> *) -> k2 -> *) d f a) -> [Char]
- conNameProxied :: forall proxy t c f a. Constructor c => proxy ((t :: k1 -> (* -> *) -> k2 -> *) c f a) -> [Char]
- conFixityProxied :: forall proxy t c f a. Constructor c => proxy ((t :: k1 -> (* -> *) -> k2 -> *) c f a) -> Fixity
- conIsRecordProxied :: forall proxy t c f a. Constructor c => proxy ((t :: k1 -> (* -> *) -> k2 -> *) c f a) -> Bool
- selNameProxied :: forall proxy t s f a. Selector s => proxy ((t :: k1 -> (* -> *) -> k2 -> *) s f a) -> [Char]
- selSourceUnpackednessProxied :: forall proxy t s f a. Selector s => proxy ((t :: k1 -> (* -> *) -> k2 -> *) s f a) -> SourceUnpackedness
- selSourceStrictnessProxied :: forall proxy t s f a. Selector s => proxy ((t :: k1 -> (* -> *) -> k2 -> *) s f a) -> SourceStrictness
- selDecidedStrictnessProxied :: forall proxy t s f a. Selector s => proxy ((t :: k1 -> (* -> *) -> k2 -> *) s f a) -> DecidedStrictness
- floatRadixProxied :: forall proxy a. RealFloat a => proxy a -> Integer
- floatDigitsProxied :: forall proxy a. RealFloat a => proxy a -> Int
- floatRangeProxied :: forall proxy a. RealFloat a => proxy a -> (Int, Int)
- parseFormatProxied :: forall proxy a. PrintfArg a => proxy a -> ModifierParser
proxied and unproxied
proxied :: forall proxy a b. (a -> b) -> proxy a -> b Source #
Converts a constant function to one that takes a proxy argument.
Since: 0.1
proxyHashed :: forall a b. (a -> b) -> Proxy# a -> b Source #
Converts a constant function to one that takes a Proxy# argument.
This function is only available with base-4.7 or later.
Since: 0.2
unproxied :: forall a b. (Proxy a -> b) -> a -> b Source #
Converts a constant function that takes a Proxy argument to one that
doesn't require a proxy argument. (I'm not sure why you'd want this,
but it's here for symmetry.)
Since: 0.1
module Data.Proxy
Proxified functions
Data.Bits
bitSizeProxied :: forall proxy a. Bits a => proxy a -> Int Source #
bitSizeProxied=proxiedbitSize
Since: 0.1
isSignedProxied :: forall proxy a. Bits a => proxy a -> Bool Source #
isSignedProxied=proxiedisSigned
Since: 0.1
bitSizeMaybeProxied :: forall proxy a. Bits a => proxy a -> Maybe Int Source #
bitSizeMaybeProxied=proxiedbitSizeMaybe
This function is only available with base-4.7 or later.
Since: 0.1
finiteBitSizeProxied :: forall proxy a. FiniteBits a => proxy a -> Int Source #
finiteBitSizeProxied=proxiedfiniteBitSize
This function is only available with base-4.7 or later.
Since: 0.1
Data.Data
dataTypeOfProxied :: forall proxy a. Data a => proxy a -> DataType Source #
dataTypeOfProxied=proxieddataTypeOf
Since: 0.1
Data.Typeable
typeOfProxied :: forall proxy a. Typeable a => proxy a -> TypeRep Source #
Foreign.Storable
sizeOfProxied :: forall proxy a. Storable a => proxy a -> Int Source #
sizeOfProxied=proxiedsizeOf
Since: 0.1
alignmentProxied :: forall proxy a. Storable a => proxy a -> Int Source #
alignmentProxied=proxiedalignment
Since: 0.1
GHC.Generics
datatypeNameProxied :: forall proxy t d f a. Datatype d => proxy ((t :: k1 -> (* -> *) -> k2 -> *) d f a) -> [Char] Source #
datatypeNameProxied=proxieddatatypeName
Since: 0.1
moduleNameProxied :: forall proxy t d f a. Datatype d => proxy ((t :: k1 -> (* -> *) -> k2 -> *) d f a) -> [Char] Source #
moduleNameProxied=proxiedmoduleName
Since: 0.1
isNewtypeProxied :: forall proxy t d f a. Datatype d => proxy ((t :: k1 -> (* -> *) -> k2 -> *) d f a) -> Bool Source #
isNewtypeProxied=proxiedisNewtype
This function is only available with base-4.7 or later.
Since: 0.1
packageNameProxied :: forall proxy t d f a. Datatype d => proxy ((t :: k1 -> (* -> *) -> k2 -> *) d f a) -> [Char] Source #
packageNameProxied=proxiedpackageName
This function is only avaiable with base-4.9 or later.
Since: 0.1
conNameProxied :: forall proxy t c f a. Constructor c => proxy ((t :: k1 -> (* -> *) -> k2 -> *) c f a) -> [Char] Source #
conNameProxied=proxiedconName
Since: 0.1
conFixityProxied :: forall proxy t c f a. Constructor c => proxy ((t :: k1 -> (* -> *) -> k2 -> *) c f a) -> Fixity Source #
conFixityProxied=proxiedconFixity
Since: 0.1
conIsRecordProxied :: forall proxy t c f a. Constructor c => proxy ((t :: k1 -> (* -> *) -> k2 -> *) c f a) -> Bool Source #
conIsRecordProxied=proxiedconIsRecord
Since: 0.1
selNameProxied :: forall proxy t s f a. Selector s => proxy ((t :: k1 -> (* -> *) -> k2 -> *) s f a) -> [Char] Source #
selNameProxied=proxiedselName
Since: 0.1
selSourceUnpackednessProxied :: forall proxy t s f a. Selector s => proxy ((t :: k1 -> (* -> *) -> k2 -> *) s f a) -> SourceUnpackedness Source #
selSourceUnpackednessProxied=proxiedselSourceUnpackedness
This function is only available with base-4.9 or later.
Since: 0.1
selSourceStrictnessProxied :: forall proxy t s f a. Selector s => proxy ((t :: k1 -> (* -> *) -> k2 -> *) s f a) -> SourceStrictness Source #
selSourceStrictnessProxied=proxiedselSourceStrictness
This function is only available with base-4.9 or later.
Since: 0.1
selDecidedStrictnessProxied :: forall proxy t s f a. Selector s => proxy ((t :: k1 -> (* -> *) -> k2 -> *) s f a) -> DecidedStrictness Source #
selDecidedStrictnessProxied=proxiedselDecidedStrictness
This function is only available with base-4.9 or later.
Since: 0.1
Prelude
floatRadixProxied :: forall proxy a. RealFloat a => proxy a -> Integer Source #
floatRadixProxied=proxiedfloatRadix
Since: 0.1
floatDigitsProxied :: forall proxy a. RealFloat a => proxy a -> Int Source #
floatDigitsProxied=proxiedfloatDigits
Since: 0.1
floatRangeProxied :: forall proxy a. RealFloat a => proxy a -> (Int, Int) Source #
floatRangeProxied=proxiedfloatRange
Since: 0.1
Text.Printf
parseFormatProxied :: forall proxy a. PrintfArg a => proxy a -> ModifierParser Source #
parseFormatProxied=proxiedparseFormat
This function is only available with base-4.7 or later.
Since: 0.1