Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Internal module of Prose, allowing breaking the abstraction.
Prefer to use Data.StringVariants.Prose instead.
Synopsis
- newtype Prose = Prose Text
- mkProse :: Text -> Maybe Prose
- compileProse :: QuasiQuoter
- literalProse :: forall (s :: Symbol). (KnownSymbol s, SymbolWithNoSpaceAround s) => Prose
- proseToText :: Prose -> Text
Documentation
Whitespace-trimmed, non-empty text, for use with API endpoints.
The rationale is that there are many situations where if a client sends
text that is empty or all whitespace, there's probably a client error.
Not suitable for database fields, as there is no character limit (see
ProsePersistFieldMsg
).
Instances
FromJSON Prose Source # | |
ToJSON Prose Source # | |
Defined in Data.StringVariants.Prose.Internal | |
ToJSONKey Prose Source # | |
Defined in Data.StringVariants.Prose.Internal | |
Semigroup Prose Source # | |
Show Prose Source # | |
Eq Prose Source # | |
Ord Prose Source # | |
ConvertibleStrings Prose Text Source # | |
Defined in Data.StringVariants.Prose.Internal convertString :: Prose -> Text # | |
ConvertibleStrings Prose Text Source # | |
Defined in Data.StringVariants.Prose.Internal convertString :: Prose -> Text # | |
Lift Prose Source # | |
literalProse :: forall (s :: Symbol). (KnownSymbol s, SymbolWithNoSpaceAround s) => Prose Source #
proseToText :: Prose -> Text Source #