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.

  1. FromTextShow :: a -> FromTextShow a

    text-show TextShow

    No documentation available.

  2. 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: 3

  3. FromTextShow1 :: f a -> FromTextShow1 (f :: k -> Type) (a :: k)

    text-show TextShow

    No documentation available.

  4. 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: 3

  5. FromTextShow2 :: f a b -> FromTextShow2 (f :: k -> k1 -> Type) (a :: k) (b :: k1)

    text-show TextShow

    No documentation available.

  6. class TextShow a

    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

  7. fromStringShow :: FromStringShow a -> a

    text-show TextShow

    No documentation available.

  8. fromStringShow1 :: FromStringShow1 (f :: k -> Type) (a :: k) -> f a

    text-show TextShow

    No documentation available.

  9. fromStringShow2 :: FromStringShow2 (f :: k -> k1 -> Type) (a :: k) (b :: k1) -> f a b

    text-show TextShow

    No documentation available.

  10. fromTextShow :: FromTextShow a -> a

    text-show TextShow

    No documentation available.

Page 262 of many | Previous | Next