Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
FromTextShow :: a -> FromTextShow atext-show TextShow No documentation available.
newtype
FromTextShow1 (f :: k -> Type) (a :: k)text-show TextShow An adapter newtype, suitable for DerivingVia. The String Show1 instance for FromTextShow1 is based on its TextShow1 instance. That is,
liftShowsPrec sp sl p (FromTextShow1 x) = showbPrecToShowsPrec (liftShowbPrec (showsPrecToShowbPrec sp) (showsToShowb sl)) p x
Since: 3FromTextShow1 :: f a -> FromTextShow1 (f :: k -> Type) (a :: k)text-show TextShow No documentation available.
newtype
FromTextShow2 (f :: k -> k1 -> Type) (a :: k) (b :: k1)text-show TextShow An adapter newtype, suitable for DerivingVia. The String Show2 instance for FromTextShow2 is based on its TextShow2 instance. That is,
liftShowsPrec2 sp1 sl1 sp2 sl2 p (FromTextShow2 x) = showbPrecToShowsPrec (liftShowbPrec2 (showsPrecToShowbPrec sp1) (showsToShowb sl1) (showsPrecToShowbPrec sp2) (showsToShowb sl2)) p x
Since: 3FromTextShow2 :: f a b -> FromTextShow2 (f :: k -> k1 -> Type) (a :: k) (b :: k1)text-show TextShow No documentation available.
-
text-show TextShow Conversion of values to Text. Because there are both strict and lazy Text variants, the TextShow class deliberately avoids using Text in its functions. Instead, showbPrec, showb, and showbList all return Builder, an efficient intermediate form that can be converted to either kind of Text. Builder is a Monoid, so it is useful to use the mappend (or <>) function to combine Builders when creating TextShow instances. As an example:
import Data.Semigroup import TextShow data Example = Example Int Int instance TextShow Example where showb (Example i1 i2) = showb i1 <> showbSpace <> showb i2
If you do not want to create TextShow instances manually, you can alternatively use the TextShow.TH module to automatically generate default TextShow instances using Template Haskell, or the TextShow.Generic module to quickly define TextShow instances using GHC.Generics. Since: 2 fromStringShow :: FromStringShow a -> atext-show TextShow No documentation available.
fromStringShow1 :: FromStringShow1 (f :: k -> Type) (a :: k) -> f atext-show TextShow No documentation available.
fromStringShow2 :: FromStringShow2 (f :: k -> k1 -> Type) (a :: k) (b :: k1) -> f a btext-show TextShow No documentation available.
fromTextShow :: FromTextShow a -> atext-show TextShow No documentation available.