Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Serialize.Describe.Combinators.FText
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
.
Constructors
FText | |
Fields
|
Instances
Show (FText n) Source # | |
KnownNat n => IsString (FText n) Source # | |
Defined in Data.Serialize.Describe.Combinators.FText Methods fromString :: String -> FText n # | |
KnownNat n => Describe (FText n) Source # | |
Defined in Data.Serialize.Describe.Combinators.FText Associated Types type Context m (FText n) :: Constraint Source # | |
type Context m (FText n) Source # | |
Defined in Data.Serialize.Describe.Combinators.FText |