Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- ftext :: (MonadTrans m, forall x. Monad x => Monad (m x)) => Int -> (s -> Text) -> DescriptorM m s Text
- newtype KnownNat n => FText n = FText {
- unwrapFText :: Text
Documentation
ftext :: (MonadTrans m, forall x. Monad x => Monad (m x)) => Int -> (s -> Text) -> DescriptorM m s Text Source #
A fixed text descriptor which reads a fixed amount of bytes, discarding all trailing '\0' characters. Upon serializing, the text will either be truncated to the specified fixed length, or padded with '\0' characters to meet it.
newtype KnownNat n => FText n Source #
Type-level variant of ftext
.
FText | |
|
Instances
Show (FText n) Source # | |
KnownNat n => IsString (FText n) Source # | |
Defined in Data.Serialize.Describe.Combinators.FText fromString :: String -> FText n # | |
KnownNat n => Describe (FText n) Source # | |
Defined in Data.Serialize.Describe.Combinators.FText type Context m (FText n) :: Constraint Source # | |
type Context m (FText n) Source # | |
Defined in Data.Serialize.Describe.Combinators.FText |