Safe Haskell | None |
---|---|
Language | Haskell2010 |
Stack.StaticBytes
Documentation
Instances
Eq Bytes8 # | |
Data Bytes8 # | |
Defined in Stack.StaticBytes Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Bytes8 -> c Bytes8 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Bytes8 # toConstr :: Bytes8 -> Constr # dataTypeOf :: Bytes8 -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Bytes8) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Bytes8) # gmapT :: (forall b. Data b => b -> b) -> Bytes8 -> Bytes8 # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Bytes8 -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Bytes8 -> r # gmapQ :: (forall d. Data d => d -> u) -> Bytes8 -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Bytes8 -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Bytes8 -> m Bytes8 # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Bytes8 -> m Bytes8 # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Bytes8 -> m Bytes8 # | |
Ord Bytes8 # | |
Show Bytes8 # | |
Generic Bytes8 # | |
NFData Bytes8 # | |
Defined in Stack.StaticBytes | |
Hashable Bytes8 # | |
Defined in Stack.StaticBytes | |
ByteArrayAccess Bytes8 # | |
Store Bytes8 # | |
StaticBytes Bytes8 # | |
type Rep Bytes8 # | |
Defined in Stack.StaticBytes |
Instances
Eq Bytes16 # | |
Data Bytes16 # | |
Defined in Stack.StaticBytes Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Bytes16 -> c Bytes16 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Bytes16 # toConstr :: Bytes16 -> Constr # dataTypeOf :: Bytes16 -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Bytes16) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Bytes16) # gmapT :: (forall b. Data b => b -> b) -> Bytes16 -> Bytes16 # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Bytes16 -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Bytes16 -> r # gmapQ :: (forall d. Data d => d -> u) -> Bytes16 -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Bytes16 -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Bytes16 -> m Bytes16 # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Bytes16 -> m Bytes16 # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Bytes16 -> m Bytes16 # | |
Ord Bytes16 # | |
Show Bytes16 # | |
Generic Bytes16 # | |
NFData Bytes16 # | |
Defined in Stack.StaticBytes | |
Hashable Bytes16 # | |
Defined in Stack.StaticBytes | |
ByteArrayAccess Bytes16 # | |
Store Bytes16 # | |
StaticBytes Bytes16 # | |
type Rep Bytes16 # | |
Defined in Stack.StaticBytes type Rep Bytes16 = D1 (MetaData "Bytes16" "Stack.StaticBytes" "stack-1.7.1-79VQHXRBDVUIQMpSmzqhhb" False) (C1 (MetaCons "Bytes16" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bytes8) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bytes8))) |
Instances
Eq Bytes32 # | |
Data Bytes32 # | |
Defined in Stack.StaticBytes Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Bytes32 -> c Bytes32 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Bytes32 # toConstr :: Bytes32 -> Constr # dataTypeOf :: Bytes32 -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Bytes32) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Bytes32) # gmapT :: (forall b. Data b => b -> b) -> Bytes32 -> Bytes32 # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Bytes32 -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Bytes32 -> r # gmapQ :: (forall d. Data d => d -> u) -> Bytes32 -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Bytes32 -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Bytes32 -> m Bytes32 # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Bytes32 -> m Bytes32 # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Bytes32 -> m Bytes32 # | |
Ord Bytes32 # | |
Show Bytes32 # | |
Generic Bytes32 # | |
NFData Bytes32 # | |
Defined in Stack.StaticBytes | |
Hashable Bytes32 # | |
Defined in Stack.StaticBytes | |
ByteArrayAccess Bytes32 # | |
Store Bytes32 # | |
StaticBytes Bytes32 # | |
type Rep Bytes32 # | |
Defined in Stack.StaticBytes type Rep Bytes32 = D1 (MetaData "Bytes32" "Stack.StaticBytes" "stack-1.7.1-79VQHXRBDVUIQMpSmzqhhb" False) (C1 (MetaCons "Bytes32" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bytes16) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bytes16))) |
Instances
Eq Bytes64 # | |
Data Bytes64 # | |
Defined in Stack.StaticBytes Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Bytes64 -> c Bytes64 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Bytes64 # toConstr :: Bytes64 -> Constr # dataTypeOf :: Bytes64 -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Bytes64) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Bytes64) # gmapT :: (forall b. Data b => b -> b) -> Bytes64 -> Bytes64 # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Bytes64 -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Bytes64 -> r # gmapQ :: (forall d. Data d => d -> u) -> Bytes64 -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Bytes64 -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Bytes64 -> m Bytes64 # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Bytes64 -> m Bytes64 # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Bytes64 -> m Bytes64 # | |
Ord Bytes64 # | |
Show Bytes64 # | |
Generic Bytes64 # | |
NFData Bytes64 # | |
Defined in Stack.StaticBytes | |
Hashable Bytes64 # | |
Defined in Stack.StaticBytes | |
ByteArrayAccess Bytes64 # | |
Store Bytes64 # | |
StaticBytes Bytes64 # | |
type Rep Bytes64 # | |
Defined in Stack.StaticBytes type Rep Bytes64 = D1 (MetaData "Bytes64" "Stack.StaticBytes" "stack-1.7.1-79VQHXRBDVUIQMpSmzqhhb" False) (C1 (MetaCons "Bytes64" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bytes32) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bytes32))) |
Instances
Eq Bytes128 # | |
Data Bytes128 # | |
Defined in Stack.StaticBytes Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Bytes128 -> c Bytes128 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Bytes128 # toConstr :: Bytes128 -> Constr # dataTypeOf :: Bytes128 -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Bytes128) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Bytes128) # gmapT :: (forall b. Data b => b -> b) -> Bytes128 -> Bytes128 # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Bytes128 -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Bytes128 -> r # gmapQ :: (forall d. Data d => d -> u) -> Bytes128 -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Bytes128 -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Bytes128 -> m Bytes128 # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Bytes128 -> m Bytes128 # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Bytes128 -> m Bytes128 # | |
Ord Bytes128 # | |
Defined in Stack.StaticBytes | |
Show Bytes128 # | |
Generic Bytes128 # | |
NFData Bytes128 # | |
Defined in Stack.StaticBytes | |
Hashable Bytes128 # | |
Defined in Stack.StaticBytes | |
ByteArrayAccess Bytes128 # | |
Store Bytes128 # | |
StaticBytes Bytes128 # | |
type Rep Bytes128 # | |
Defined in Stack.StaticBytes type Rep Bytes128 = D1 (MetaData "Bytes128" "Stack.StaticBytes" "stack-1.7.1-79VQHXRBDVUIQMpSmzqhhb" False) (C1 (MetaCons "Bytes128" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bytes64) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bytes64))) |
class DynamicBytes dbytes #
Minimal complete definition
lengthD, withPeekD, fromWordsD
Instances
DynamicBytes ByteString # | |
Defined in Stack.StaticBytes Methods lengthD :: ByteString -> Int withPeekD :: ByteString -> ((Int -> IO Word64) -> IO a) -> IO a fromWordsD :: Int -> [Word64] -> ByteString | |
word8 ~ Word8 => DynamicBytes (Vector word8) # | |
word8 ~ Word8 => DynamicBytes (Vector word8) # | |
word8 ~ Word8 => DynamicBytes (Vector word8) # | |
class StaticBytes sbytes #
Minimal complete definition
lengthS, toWordsS, usePeekS
Instances
StaticBytes Bytes128 # | |
StaticBytes Bytes64 # | |
StaticBytes Bytes32 # | |
StaticBytes Bytes16 # | |
StaticBytes Bytes8 # | |
data StaticBytesException #
Constructors
NotEnoughBytes | |
TooManyBytes |
Instances
Eq StaticBytesException # | |
Defined in Stack.StaticBytes Methods (==) :: StaticBytesException -> StaticBytesException -> Bool # (/=) :: StaticBytesException -> StaticBytesException -> Bool # | |
Show StaticBytesException # | |
Defined in Stack.StaticBytes Methods showsPrec :: Int -> StaticBytesException -> ShowS # show :: StaticBytesException -> String # showList :: [StaticBytesException] -> ShowS # | |
Exception StaticBytesException # | |
Defined in Stack.StaticBytes Methods toException :: StaticBytesException -> SomeException # fromException :: SomeException -> Maybe StaticBytesException # |
toStaticExact :: forall dbytes sbytes. (DynamicBytes dbytes, StaticBytes sbytes) => dbytes -> Either StaticBytesException sbytes #
toStaticPad :: forall dbytes sbytes. (DynamicBytes dbytes, StaticBytes sbytes) => dbytes -> Either StaticBytesException sbytes #
toStaticTruncate :: forall dbytes sbytes. (DynamicBytes dbytes, StaticBytes sbytes) => dbytes -> Either StaticBytesException sbytes #
toStaticPadTruncate :: (DynamicBytes dbytes, StaticBytes sbytes) => dbytes -> sbytes #
fromStatic :: forall dbytes sbytes. (DynamicBytes dbytes, StaticBytes sbytes) => sbytes -> dbytes #