-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Efficient conversion of values into Text -- @package text-show @version 2 -- | Monomorphic TextShow function for StaticPtrInfo -- values. This module only exports functions if using -- base-4.8.0.0 or later. -- -- Since: 2 module TextShow.GHC.StaticPtr -- | Monomorphic TextShow functions for data types in the -- Flags module. This module only exports functions if using -- base-4.8.0.0 or later. -- -- Since: 2 module TextShow.GHC.RTS.Flags -- | Monomorphic TextShow function for ConsoleEvent. This -- module only exports functions if using Windows, and not using GHCJS. -- -- Since: 2 module TextShow.GHC.Conc.Windows -- | Monomorphic TextShow functions for concurrency-related data -- types. -- -- Since: 2 module TextShow.Control.Concurrent -- | Convert a ThreadId to a Builder with the given -- precedence. -- -- Since: 2 showbThreadIdPrec :: Int -> ThreadId -> Builder -- | Convert a ThreadStatus to a Builder with the given -- precedence. -- -- Since: 2 showbThreadStatusPrec :: Int -> ThreadStatus -> Builder -- | Convert a BlockReason to a Builder. -- -- Since: 2 showbBlockReason :: BlockReason -> Builder instance TextShow BlockReason instance TextShow ThreadStatus instance TextShow ThreadId -- | Monomorphic TextShow functions for Exceptions. -- -- Since: 2 module TextShow.Control.Exception -- | Convert a SomeException value to a Builder with the -- given precedence. -- -- Since: 2 showbSomeExceptionPrec :: Int -> SomeException -> Builder -- | Convert an IOException to a Builder. -- -- Since: 2 showbIOException :: IOException -> Builder -- | Convert an ArithException to a Builder. -- -- Since: 2 showbArithException :: ArithException -> Builder -- | Convert an ArrayException to a Builder. -- -- Since: 2 showbArrayException :: ArrayException -> Builder -- | Convert an AssertionFailed exception to a Builder. -- -- Since: 2 showbAssertionFailed :: AssertionFailed -> Builder -- | Convert a SomeAsyncException value to a Builder. This -- function is only available with base-4.7.0.0 or later. -- -- Since: 2 showbSomeAsyncException :: SomeAsyncException -> Builder -- | Convert an AsyncException to a Builder. -- -- Since: 2 showbAsyncException :: AsyncException -> Builder -- | Convert a NonTermination exception to a Builder. -- -- Since: 2 showbNonTermination :: NonTermination -> Builder -- | Convert a NestedAtomically exception to a Builder. -- -- Since: 2 showbNestedAtomically :: NestedAtomically -> Builder -- | Convert a BlockedIndefinitelyOnMVar exception to a -- Builder. -- -- Since: 2 showbBlockedIndefinitelyOnMVar :: BlockedIndefinitelyOnMVar -> Builder -- | Convert a BlockedIndefinitelyOnSTM exception to a -- Builder. -- -- Since: 2 showbBlockedIndefinitelyOnSTM :: BlockedIndefinitelyOnSTM -> Builder -- | Convert a Deadlock exception to a Builder. -- -- Since: 2 showbDeadlock :: Deadlock -> Builder -- | Convert a NoMethodError to a Builder. -- -- Since: 2 showbNoMethodError :: NoMethodError -> Builder -- | Convert a PatternMatchFail to a Builder. -- -- Since: 2 showbPatternMatchFail :: PatternMatchFail -> Builder -- | Convert a RecConError to a Builder. -- -- Since: 2 showbRecConError :: RecConError -> Builder -- | Convert a RecSelError to a Builder. -- -- Since: 2 showbRecSelError :: RecSelError -> Builder -- | Convert a RecUpdError to a Builder. -- -- Since: 2 showbRecUpdError :: RecUpdError -> Builder -- | Convert an ErrorCall to a Builder. -- -- Since: 2 showbErrorCall :: ErrorCall -> Builder -- | Convert a MaskingState to a Builder. -- -- Since: 2 showbMaskingState :: MaskingState -> Builder instance TextShow MaskingState instance TextShow ErrorCall instance TextShow RecUpdError instance TextShow RecSelError instance TextShow RecConError instance TextShow PatternMatchFail instance TextShow NoMethodError instance TextShow Deadlock instance TextShow BlockedIndefinitelyOnSTM instance TextShow BlockedIndefinitelyOnMVar instance TextShow NestedAtomically instance TextShow NonTermination instance TextShow AsyncException instance TextShow SomeAsyncException instance TextShow AssertionFailed instance TextShow ArrayException instance TextShow ArithException instance TextShow IOException instance TextShow SomeException -- | Monomorphic TextShow functions for strict ST values. -- -- Since: 2 module TextShow.Control.Monad.ST -- | Convert a strict ST value to a Builder. -- -- Since: 2 showbST :: ST s a -> Builder instance TextShow2 ST instance TextShow1 (ST s) instance TextShow (ST s a) -- | Monomorphic TextShow functions for tuple types. -- -- Since: 2 module TextShow.Data.Tuple -- | Converts () into a Builder. -- -- Since: 2 showbUnit :: () -> Builder -- | Converts a 2-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb2TupleWith2 :: (a -> Builder) -> (b -> Builder) -> (a, b) -> Builder -- | Converts a 3-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb3TupleWith2 :: TextShow a => (b -> Builder) -> (c -> Builder) -> (a, b, c) -> Builder -- | Converts a 4-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb4TupleWith2 :: (TextShow a, TextShow b) => (c -> Builder) -> (d -> Builder) -> (a, b, c, d) -> Builder -- | Converts a 5-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb5TupleWith2 :: (TextShow a, TextShow b, TextShow c) => (d -> Builder) -> (e -> Builder) -> (a, b, c, d, e) -> Builder -- | Converts a 6-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb6TupleWith2 :: (TextShow a, TextShow b, TextShow c, TextShow d) => (e -> Builder) -> (f -> Builder) -> (a, b, c, d, e, f) -> Builder -- | Converts a 7-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb7TupleWith2 :: (TextShow a, TextShow b, TextShow c, TextShow d, TextShow e) => (f -> Builder) -> (g -> Builder) -> (a, b, c, d, e, f, g) -> Builder -- | Converts an 8-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb8TupleWith2 :: (TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f) => (g -> Builder) -> (h -> Builder) -> (a, b, c, d, e, f, g, h) -> Builder -- | Converts a 9-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb9TupleWith2 :: (TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g) => (h -> Builder) -> (i -> Builder) -> (a, b, c, d, e, f, g, h, i) -> Builder -- | Converts a 10-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb10TupleWith2 :: (TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h) => (i -> Builder) -> (j -> Builder) -> (a, b, c, d, e, f, g, h, i, j) -> Builder -- | Converts an 11-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb11TupleWith2 :: (TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i) => (j -> Builder) -> (k -> Builder) -> (a, b, c, d, e, f, g, h, i, j, k) -> Builder -- | Converts a 12-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb12TupleWith2 :: (TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j) => (k -> Builder) -> (l -> Builder) -> (a, b, c, d, e, f, g, h, i, j, k, l) -> Builder -- | Converts a 13-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb13TupleWith2 :: (TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k) => (l -> Builder) -> (m -> Builder) -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Builder -- | Converts a 14-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb14TupleWith2 :: (TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k, TextShow l) => (m -> Builder) -> (n -> Builder) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Builder -- | Converts a 15-tuple into a Builder with the given show -- functions. -- -- Since: 2 showb15TupleWith2 :: (TextShow a, TextShow b, TextShow c, TextShow d, TextShow e, TextShow f, TextShow g, TextShow h, TextShow i, TextShow j, TextShow k, TextShow l, TextShow m) => (n -> Builder) -> (o -> Builder) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Builder instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0, TextShow k0, TextShow l0, TextShow m0) => TextShow2 ((,,,,,,,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0 i0 j0 k0 l0 m0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0, TextShow k0, TextShow l0) => TextShow2 ((,,,,,,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0 i0 j0 k0 l0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0, TextShow k0) => TextShow2 ((,,,,,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0 i0 j0 k0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0) => TextShow2 ((,,,,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0 i0 j0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0) => TextShow2 ((,,,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0 i0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0) => TextShow2 ((,,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0) => TextShow2 ((,,,,,,,,) a0 b0 c0 d0 e0 f0 g0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0) => TextShow2 ((,,,,,,,) a0 b0 c0 d0 e0 f0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0) => TextShow2 ((,,,,,,) a0 b0 c0 d0 e0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0) => TextShow2 ((,,,,,) a0 b0 c0 d0) instance (TextShow a0, TextShow b0, TextShow c0) => TextShow2 ((,,,,) a0 b0 c0) instance (TextShow a0, TextShow b0) => TextShow2 ((,,,) a0 b0) instance TextShow a0 => TextShow2 ((,,) a0) instance TextShow2 (,) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0, TextShow k0, TextShow l0, TextShow m0, TextShow n0) => TextShow1 ((,,,,,,,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0 i0 j0 k0 l0 m0 n0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0, TextShow k0, TextShow l0, TextShow m0) => TextShow1 ((,,,,,,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0 i0 j0 k0 l0 m0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0, TextShow k0, TextShow l0) => TextShow1 ((,,,,,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0 i0 j0 k0 l0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0, TextShow k0) => TextShow1 ((,,,,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0 i0 j0 k0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0) => TextShow1 ((,,,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0 i0 j0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0) => TextShow1 ((,,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0 i0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0) => TextShow1 ((,,,,,,,,) a0 b0 c0 d0 e0 f0 g0 h0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0) => TextShow1 ((,,,,,,,) a0 b0 c0 d0 e0 f0 g0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0) => TextShow1 ((,,,,,,) a0 b0 c0 d0 e0 f0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0) => TextShow1 ((,,,,,) a0 b0 c0 d0 e0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0) => TextShow1 ((,,,,) a0 b0 c0 d0) instance (TextShow a0, TextShow b0, TextShow c0) => TextShow1 ((,,,) a0 b0 c0) instance (TextShow a0, TextShow b0) => TextShow1 ((,,) a0 b0) instance TextShow a0 => TextShow1 ((,) a0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0, TextShow k0, TextShow l0, TextShow m0, TextShow n0, TextShow o0) => TextShow (a0, b0, c0, d0, e0, f0, g0, h0, i0, j0, k0, l0, m0, n0, o0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0, TextShow k0, TextShow l0, TextShow m0, TextShow n0) => TextShow (a0, b0, c0, d0, e0, f0, g0, h0, i0, j0, k0, l0, m0, n0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0, TextShow k0, TextShow l0, TextShow m0) => TextShow (a0, b0, c0, d0, e0, f0, g0, h0, i0, j0, k0, l0, m0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0, TextShow k0, TextShow l0) => TextShow (a0, b0, c0, d0, e0, f0, g0, h0, i0, j0, k0, l0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0, TextShow k0) => TextShow (a0, b0, c0, d0, e0, f0, g0, h0, i0, j0, k0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0, TextShow j0) => TextShow (a0, b0, c0, d0, e0, f0, g0, h0, i0, j0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0, TextShow i0) => TextShow (a0, b0, c0, d0, e0, f0, g0, h0, i0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0, TextShow h0) => TextShow (a0, b0, c0, d0, e0, f0, g0, h0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0, TextShow g0) => TextShow (a0, b0, c0, d0, e0, f0, g0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0, TextShow f0) => TextShow (a0, b0, c0, d0, e0, f0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0, TextShow e0) => TextShow (a0, b0, c0, d0, e0) instance (TextShow a0, TextShow b0, TextShow c0, TextShow d0) => TextShow (a0, b0, c0, d0) instance (TextShow a0, TextShow b0, TextShow c0) => TextShow (a0, b0, c0) instance (TextShow a0, TextShow b0) => TextShow (a0, b0) instance TextShow () -- | Monomorphic TextShow function for Bool values. -- -- Since: 2 module TextShow.Data.Bool -- | Convert a Bool to a Builder. -- -- Since: 2 showbBool :: Bool -> Builder instance TextShow Bool -- | Monomorphic TextShow functions for data types in the -- bytestring library. -- -- Since: 2 module TextShow.Data.ByteString -- | Convert a strict ByteString to a Builder. -- -- Since: 2 showbByteStringStrict :: ByteString -> Builder -- | Convert a lazy ByteString to a Builder. -- -- Since: 2 showbByteStringLazy :: ByteString -> Builder -- | Convert a lazy ByteString to a Builder with the given -- precedence. -- -- With bytestring-0.10.0.0 or later, this function ignores the -- precedence argument, since lazy ByteStrings are printed out -- identically to Strings. On earlier versions of -- bytestring, however, lazy ByteStrings can be printed -- with parentheses (e.g., Chunk "example" Empty vs. (Chunk -- "example" Empty)) depending on the precedence. -- -- Since: 2 showbByteStringLazyPrec :: Int -> ByteString -> Builder -- | Convert a ShortByteString to a Builder. -- -- Since: 2 showbShortByteString :: ShortByteString -> Builder instance TextShow ShortByteString instance TextShow ByteString instance TextShow ByteString -- | Monomorphic TextShow functions for integral types. -- -- Since: 2 module TextShow.Data.Integral -- | Convert an Int to a Builder with the given precedence. -- -- Since: 2 showbIntPrec :: Int -> Int -> Builder -- | Convert an Int8 to a Builder with the given precedence. -- -- Since: 2 showbInt8Prec :: Int -> Int8 -> Builder -- | Convert an Int16 to a Builder with the given precedence. -- -- Since: 2 showbInt16Prec :: Int -> Int16 -> Builder -- | Convert an Int32 to a Builder with the given precedence. -- -- Since: 2 showbInt32Prec :: Int -> Int32 -> Builder -- | Convert an Int64 to a Builder with the given precedence. -- -- Since: 2 showbInt64Prec :: Int -> Int64 -> Builder -- | Convert an Integer to a Builder with the given -- precedence. -- -- Since: 2 showbIntegerPrec :: Int -> Integer -> Builder -- | Convert an Integral type to a Builder with the given -- precedence. -- -- Since: 2 showbIntegralPrec :: Integral a => Int -> a -> Builder -- | Shows a non-negative Integral number using the base -- specified by the first argument, and the character representation -- specified by the second. -- -- Since: 2 showbIntAtBase :: (Integral a, TextShow a) => a -> (Int -> Char) -> a -> Builder -- | Show non-negative Integral numbers in base 2. -- -- Since: 2 showbBin :: (Integral a, TextShow a) => a -> Builder -- | Show non-negative Integral numbers in base 16. -- -- Since: 2 showbHex :: (Integral a, TextShow a) => a -> Builder -- | Show non-negative Integral numbers in base 8. -- -- Since: 2 showbOct :: (Integral a, TextShow a) => a -> Builder -- | Convert a Word to a Builder with the given precedence. -- -- Since: 2 showbWord :: Word -> Builder -- | Convert a Word8 to a Builder with the given precedence. -- -- Since: 2 showbWord8 :: Word8 -> Builder -- | Convert a Word16 to a Builder with the given precedence. -- -- Since: 2 showbWord16 :: Word16 -> Builder -- | Convert a Word32 to a Builder with the given precedence. -- -- Since: 2 showbWord32 :: Word32 -> Builder -- | Convert a Word64 to a Builder with the given precedence. -- -- Since: 2 showbWord64 :: Word64 -> Builder instance TextShow Word64 instance TextShow Word32 instance TextShow Word16 instance TextShow Word8 instance TextShow Word instance TextShow Integer instance TextShow Int64 instance TextShow Int32 instance TextShow Int16 instance TextShow Int8 instance TextShow Int -- | Monomorphic TextShow functions for Char and -- String. -- -- Since: 2 module TextShow.Data.Char -- | Convert a Char to a Builder (surrounded by single -- quotes). -- -- Since: 2 showbChar :: Char -> Builder -- | Convert a Char to a Builder (without single quotes). -- -- Since: 2 showbLitChar :: Char -> Builder -- | Convert a String to a Builder (surrounded by double -- quotes). -- -- Since: 2 showbString :: String -> Builder -- | Convert a String to a Builder (without double quotes). -- -- Since: 2 showbLitString :: String -> Builder -- | Convert a GeneralCategory to a Builder. -- -- Since: 2 showbGeneralCategory :: GeneralCategory -> Builder -- | A table of ASCII control characters that needs to be escaped with a -- backslash. -- -- Since: 2 asciiTabB :: Array Int Builder instance TextShow GeneralCategory instance TextShow Char -- | Exports showbListWith. module TextShow.Data.List -- | Converts a list of values into a Builder in which the values -- are surrounded by square brackets and each value is separated by a -- comma. The function argument controls how each element is shown. showbListWith :: (a -> Builder) -> [a] -> Builder instance TextShow1 [] instance TextShow a => TextShow [a] -- | Monomorphic TextShow functions for Const and -- ZipList. -- -- Since: 2 module TextShow.Control.Applicative -- | Convert a Const value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbConstPrecWith :: (Int -> a -> Builder) -> Int -> Const a b -> Builder -- | Convert a ZipList to a Builder with the given show -- function precedence. -- -- Since: 2 showbZipListPrecWith :: (Int -> a -> Builder) -> Int -> ZipList a -> Builder instance TextShow1 ZipList instance TextShow a0 => TextShow (ZipList a0) instance TextShow2 Const instance TextShow a => TextShow1 (Const a) instance TextShow a => TextShow (Const a b) -- | Monomorphic TextShow function for Array values. -- -- Since: 2 module TextShow.Data.Array -- | Convert an Array value to a Builder with the given -- precedence. -- -- Since: 2 showbArrayPrec :: (TextShow i, TextShow e, Ix i) => Int -> Array i e -> Builder -- | Convert a UArray value to a Builder with the given -- precedence. -- -- Since: 2 showbUArrayPrec :: (IArray UArray e, Ix i, TextShow i, TextShow e) => Int -> UArray i e -> Builder -- | Convert an IArray instance to a Builder with the given -- precedence. -- -- Since: 2 showbIArrayPrec :: (IArray a e, Ix i, TextShow i, TextShow e) => Int -> a i e -> Builder instance (IArray UArray e, Ix i, TextShow i, TextShow e) => TextShow (UArray i e) instance (TextShow i, TextShow e, Ix i) => TextShow (Array i e) -- | Monomorphic TextShow functions for floating-point types. -- -- Since: 2 module TextShow.Data.Floating -- | Convert a RealFloat value to a Builder with the given -- precedence. -- -- Since: 2 showbRealFloatPrec :: RealFloat a => Int -> a -> Builder -- | Convert a Float to a Builder with the given precedence. -- -- Since: 2 showbFloatPrec :: Int -> Float -> Builder -- | Convert a Double to a Builder with the given precedence. -- -- Since: 2 showbDoublePrec :: Int -> Double -> Builder -- | Show a signed RealFloat value using scientific (exponential) -- notation (e.g. 2.45e2, 1.5e-3). -- -- In the call showbEFloat digs val, if digs is -- Nothing, the value is shown to full precision; if digs -- is Just d, then at most d digits after the -- decimal point are shown. -- -- Since: 2 showbEFloat :: RealFloat a => Maybe Int -> a -> Builder -- | Show a signed RealFloat value using standard decimal notation -- (e.g. 245000, 0.0015). -- -- In the call showbFFloat digs val, if digs is -- Nothing, the value is shown to full precision; if digs -- is Just d, then at most d digits after the -- decimal point are shown. -- -- Since: 2 showbFFloat :: RealFloat a => Maybe Int -> a -> Builder -- | Show a signed RealFloat value using standard decimal notation -- for arguments whose absolute value lies between 0.1 and -- 9,999,999, and scientific notation otherwise. -- -- In the call showbGFloat digs val, if digs is -- Nothing, the value is shown to full precision; if digs -- is Just d, then at most d digits after the -- decimal point are shown. -- -- Since: 2 showbGFloat :: RealFloat a => Maybe Int -> a -> Builder -- | Show a signed RealFloat value using standard decimal notation -- (e.g. 245000, 0.0015). -- -- This behaves as showFFloat, except that a decimal point is -- always guaranteed, even if not needed. -- -- Since: 2 showbFFloatAlt :: RealFloat a => Maybe Int -> a -> Builder -- | Show a signed RealFloat value using standard decimal notation -- for arguments whose absolute value lies between 0.1 and -- 9,999,999, and scientific notation otherwise. -- -- This behaves as showFFloat, except that a decimal point is -- always guaranteed, even if not needed. -- -- Since: 2 showbGFloatAlt :: RealFloat a => Maybe Int -> a -> Builder -- | Convert an FPFormat value to a Builder. -- -- Since: 2 showbFPFormat :: FPFormat -> Builder -- | Control the rendering of floating point numbers. data FPFormat :: * -- | Scientific notation (e.g. 2.3e123). Exponent :: FPFormat -- | Standard decimal notation. Fixed :: FPFormat -- | Use decimal notation for values between 0.1 and -- 9,999,999, and scientific notation otherwise. Generic :: FPFormat -- | Like formatRealFloatAltB, except that the decimal is only shown -- for arguments whose absolute value is between 0.1 and -- 9,999,999. -- -- Since: 2 formatRealFloatB :: RealFloat a => FPFormat -> Maybe Int -> a -> Builder -- | Converts a RealFloat value to a Builder, specifying if a -- decimal point should always be shown. -- -- Since: 2 formatRealFloatAltB :: RealFloat a => FPFormat -> Maybe Int -> Bool -> a -> Builder instance TextShow FPFormat instance TextShow Double instance TextShow Float -- | Monomorphic TextShow function for Ratio values. -- -- Due to use of the DatatypeContexts extension, there is no -- TextShow1 Complex instance on base-4.3.0.0. -- -- Since: 2 module TextShow.Data.Complex -- | Convert a Complex value to a Builder with the given -- precedence. -- -- Note that on base-4.3.0.0, this function must have a -- (TextShow a, RealFloat a) constraint instead of -- just a (TextShow a) constraint. -- -- Since: 2 showbComplexPrec :: TextShow a => Int -> Complex a -> Builder instance TextShow1 Complex instance TextShow a => TextShow (Complex a) -- | Monomorphic TextShow function for Ratio values. -- -- Since: 2 module TextShow.Data.Ratio -- | Convert a Ratio to a Builder with the given precedence. -- -- Note that on base-4.3.0.0, this function must have a -- (Show a, Integral a) constraint instead of just -- a (Show a) constraint. -- -- Since: 2 showbRatioPrec :: TextShow a => Int -> Ratio a -> Builder instance TextShow1 Ratio instance TextShow a => TextShow (Ratio a) -- | Monomorphic TextShow functions for data types in the -- Data.Data module. -- -- Since: 2 module TextShow.Data.Data -- | Convert a Constr to a Builder. -- -- Since: 2 showbConstr :: Constr -> Builder -- | Convert a ConstrRep to a Builder with the given -- precedence. -- -- Since: 2 showbConstrRepPrec :: Int -> ConstrRep -> Builder -- | Convert a DataRep to a Builder with the given -- precedence. -- -- Since: 2 showbDataRepPrec :: Int -> DataRep -> Builder -- | Convert a DataType to a Builder with the given -- precedence. -- -- Since: 2 showbDataTypePrec :: Int -> DataType -> Builder -- | Convert a Fixity value to a Builder. -- -- Since: 2 showbFixity :: Fixity -> Builder instance TextShow Constr instance TextShow Fixity instance TextShow ConstrRep instance TextShow DataRep instance TextShow DataType -- | Monomorphic TextShow function for Either values. -- -- Since: 2 module TextShow.Data.Either -- | Convert a Either value to a Builder with the given show -- functions and precedence. -- -- Since: 2 showbEitherPrecWith2 :: (Int -> a -> Builder) -> (Int -> b -> Builder) -> Int -> Either a b -> Builder instance TextShow2 Either instance TextShow a0 => TextShow1 (Either a0) instance (TextShow a0, TextShow b0) => TextShow (Either a0 b0) -- | Monomorphic Show function for Fixed values. -- -- Since: 2 module TextShow.Data.Fixed -- | Convert a Fixed value to a Builder, where the first -- argument indicates whether to chop off trailing zeroes. -- -- Since: 2 showbFixed :: HasResolution a => Bool -> Fixed a -> Builder instance HasResolution a => TextShow (Fixed a) -- | Monomorphic TextShow function for Identity values. -- -- Since: 2 module TextShow.Data.Functor.Identity -- | Convert an Identity value to a Builder with the given -- show function and precedence. -- -- Since: 2 showbIdentityPrecWith :: (Int -> a -> Builder) -> Int -> Identity a -> Builder instance TextShow1 Identity instance TextShow a => TextShow (Identity a) -- | Monomorphic TextShow function for Maybe values. -- -- Since: 2 module TextShow.Data.Maybe -- | Convert a Maybe value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbMaybePrecWith :: (Int -> a -> Builder) -> Int -> Maybe a -> Builder instance TextShow1 Maybe instance TextShow a0 => TextShow (Maybe a0) -- | Monomorphic Show functions for Monoid-related -- newtypes. -- -- Since: 2 module TextShow.Data.Monoid -- | Convert an All value to a Builder with the given -- precedence. -- -- Since: 2 showbAllPrec :: Int -> All -> Builder -- | Convert an Any value to a Builder with the given -- precedence. -- -- Since: 2 showbAnyPrec :: Int -> Any -> Builder -- | Convert a Dual value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbDualPrecWith :: (Int -> a -> Builder) -> Int -> Dual a -> Builder -- | Convert a First value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbFirstPrecWith :: (Int -> a -> Builder) -> Int -> First a -> Builder -- | Convert a Last value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbLastPrecWith :: (Int -> a -> Builder) -> Int -> Last a -> Builder -- | Convert a Product value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbProductPrecWith :: (Int -> a -> Builder) -> Int -> Product a -> Builder -- | Convert a Sum value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbSumPrecWith :: (Int -> a -> Builder) -> Int -> Sum a -> Builder instance TextShow1 Sum instance TextShow a0 => TextShow (Sum a0) instance TextShow1 Product instance TextShow a0 => TextShow (Product a0) instance TextShow1 Last instance TextShow a0 => TextShow (Last a0) instance TextShow1 First instance TextShow a0 => TextShow (First a0) instance TextShow1 Dual instance TextShow a0 => TextShow (Dual a0) instance TextShow Any instance TextShow All -- | Monomorphic TextShow functions for Ordering and -- Down. -- -- Since: 2 module TextShow.Data.Ord -- | Convert a Ordering to a Builder. -- -- Since: 2 showbOrdering :: Ordering -> Builder -- | Convert a Down value to a Builder with the given show -- function and precedence. This function is only available with -- base-4.6.0.0 or later. -- -- Since: 2 showbDownPrecWith :: (Int -> a -> Builder) -> Int -> Down a -> Builder instance TextShow1 Down instance TextShow a0 => TextShow (Down a0) instance TextShow Ordering -- | Monomorphic TextShow function for Proxy values. -- -- Since: 2 module TextShow.Data.Proxy -- | Convert a Proxy type to a Builder. -- -- Since: 2 showbProxy :: Proxy s -> Builder instance TextShow1 Proxy instance TextShow (Proxy s) -- | Monomorphic TextShow functions for Text types. -- -- Since: 2 module TextShow.Data.Text -- | Convert a strict Text to a Builder. showbText -- should not be confused with fromText, as showbText -- escapes certain characters (such as double quotes). -- -- Since: 2 showbText :: Text -> Builder -- | Convert a lazy Text to a Builder. showbTextLazy -- should not be confused with fromTextLazy, as -- showbTextLazy escapes certain characters (such as double -- quotes). -- -- Since: 2 showbTextLazy :: Text -> Builder -- | Show a Builder as if it were a String (i.e., escape -- certain characters, such as double quotes). -- -- Since: 2 showbBuilder :: Builder -> Builder -- | Convert an I16 value to a Builder with the given -- precedence. -- -- Since: 2 showbI16Prec :: Int -> I16 -> Builder -- | Convert a UnicodeException to a Builder. -- -- Since: 2 showbUnicodeException :: UnicodeException -> Builder -- | Convert a Decoding value to a Builder with the given -- precedence. This function is only available with text-1.0.0.0 -- or later. -- -- Since: 2 showbDecodingPrec :: Int -> Decoding -> Builder -- | Convert a Size value to a Builder with the given -- precedence. This function is only available with text-1.1.0.0 -- or later. -- -- Since: 2 showbSizePrec :: Int -> Size -> Builder instance TextShow Size instance TextShow Decoding instance TextShow UnicodeException instance TextShow I16 instance TextShow Builder instance TextShow Text instance TextShow Text -- | Monomorphic TextShow functions for data types in the -- Typeable module. -- -- Since: 2 module TextShow.Data.Typeable -- | Convert a TyCon to a Builder. -- -- Since: 2 showbTyCon :: TyCon -> Builder -- | Convert a TypeRep to a Builder with the given -- precedence. -- -- Since: 2 showbTypeRepPrec :: Int -> TypeRep -> Builder instance TextShow TyCon instance TextShow TypeRep -- | Monomorphic TextShow function for Dynamic. -- -- Since: 2 module TextShow.Data.Dynamic -- | Convert a Dynamic value to a Builder. -- -- Since: 2 showbDynamic :: Dynamic -> Builder instance TextShow Dynamic -- | Monomorphic TextShow functions for Version. -- -- Since: 2 module TextShow.Data.Version -- | Convert a Version to a Builder with the given -- precedence. -- -- Since: 2 showbVersionPrec :: Int -> Version -> Builder -- | Provides one possible concrete representation for Version. For -- a version with versionBranch = [1,2,3] and -- versionTags = ["tag1","tag2"], the output will be -- 1.2.3-tag1-tag2. -- -- Since: 2 showbVersionConcrete :: Version -> Builder instance TextShow Version -- | Monomorphic TextShow function for Void values. -- -- Since: 2 module TextShow.Data.Void -- | Since Void values logically don't exist, attempting to convert -- one to a Builder will never terminate. -- -- Since: 2 showbVoid :: Void -> Builder instance TextShow Void -- | Monomorphic TextShow functions for Haskell newtypes -- corresponding to C types in the Foreign Function Interface (FFI). -- -- Since: 2 module TextShow.Foreign.C.Types -- | Convert a CChar to a Builder with the given precedence. -- -- Since: 2 showbCCharPrec :: Int -> CChar -> Builder -- | Convert a CSChar to a Builder with the given precedence. -- -- Since: 2 showbCSCharPrec :: Int -> CSChar -> Builder -- | Convert a CUChar to a Builder. -- -- Since: 2 showbCUChar :: CUChar -> Builder -- | Convert a CShort to a Builder with the given precedence. -- -- Since: 2 showbCShortPrec :: Int -> CShort -> Builder -- | Convert a CUShort to a Builder. -- -- Since: 2 showbCUShort :: CUShort -> Builder -- | Convert a CInt to a Builder with the given precedence. -- -- Since: 2 showbCIntPrec :: Int -> CInt -> Builder -- | Convert a CUInt to a Builder. -- -- Since: 2 showbCUInt :: CUInt -> Builder -- | Convert a CLong to a Builder with the given precedence. -- -- Since: 2 showbCLongPrec :: Int -> CLong -> Builder -- | Convert a CULong to a Builder. -- -- Since: 2 showbCULong :: CULong -> Builder -- | Convert a CPtrdiff to a Builder with the given -- precedence. -- -- Since: 2 showbCPtrdiffPrec :: Int -> CPtrdiff -> Builder -- | Convert a CSize to a Builder. -- -- Since: 2 showbCSize :: CSize -> Builder -- | Convert a CWchar to a Builder with the given precedence. -- -- Since: 2 showbCWcharPrec :: Int -> CWchar -> Builder -- | Convert a CSigAtomic to a Builder with the given -- precedence. -- -- Since: 2 showbCSigAtomicPrec :: Int -> CSigAtomic -> Builder -- | Convert a CLLong to a Builder with the given precedence. -- -- Since: 2 showbCLLongPrec :: Int -> CLLong -> Builder -- | Convert a CULLong to a Builder. -- -- Since: 2 showbCULLong :: CULLong -> Builder -- | Convert a CIntPtr to a Builder with the given -- precedence. -- -- Since: 2 showbCIntPtrPrec :: Int -> CIntPtr -> Builder -- | Convert a CUIntPtr to a Builder. -- -- Since: 2 showbCUIntPtr :: CUIntPtr -> Builder -- | Convert a CIntMax to a Builder with the given -- precedence. -- -- Since: 2 showbCIntMaxPrec :: Int -> CIntMax -> Builder -- | Convert a CUIntMax to a Builder. -- -- Since: 2 showbCUIntMax :: CUIntMax -> Builder -- | Convert a CClock to a Builder with the given precedence. -- -- Since: 2 showbCClockPrec :: Int -> CClock -> Builder -- | Convert a CTime to a Builder with the given precedence. -- -- Since: 2 showbCTimePrec :: Int -> CTime -> Builder -- | Convert a CUSeconds value to a Builder. This function is -- only available with base-4.4.0.0 or later. -- -- Since: 2 showbCUSeconds :: CUSeconds -> Builder -- | Convert a CSUSeconds value to a Builder with the given -- precedence. This function is only available with base-4.4.0.0 -- or later. -- -- Since: 2 showbCSUSecondsPrec :: Int -> CSUSeconds -> Builder -- | Convert a CFloat to a Builder with the given precedence. -- -- Since: 2 showbCFloatPrec :: Int -> CFloat -> Builder -- | Convert a CDouble to a Builder with the given -- precedence. -- -- Since: 2 showbCDoublePrec :: Int -> CDouble -> Builder instance TextShow CDouble instance TextShow CFloat instance TextShow CSUSeconds instance TextShow CUSeconds instance TextShow CTime instance TextShow CClock instance TextShow CUIntMax instance TextShow CIntMax instance TextShow CUIntPtr instance TextShow CIntPtr instance TextShow CULLong instance TextShow CLLong instance TextShow CSigAtomic instance TextShow CWchar instance TextShow CSize instance TextShow CPtrdiff instance TextShow CULong instance TextShow CLong instance TextShow CUInt instance TextShow CInt instance TextShow CUShort instance TextShow CShort instance TextShow CUChar instance TextShow CSChar instance TextShow CChar -- | Monomorphic TextShow functions for pointer types used in the -- Haskell Foreign Function Interface (FFI). -- -- Since: 2 module TextShow.Foreign.Ptr -- | Convert a Ptr to a Builder. Note that this does not -- require the parameterized type to be an instance of Show -- itself. -- -- Since: 2 showbPtr :: Ptr a -> Builder -- | Convert a FunPtr to a Builder. Note that this does not -- require the parameterized type to be an instance of Show -- itself. -- -- Since: 2 showbFunPtr :: FunPtr a -> Builder -- | Convert an IntPtr to a Builder with the given -- precedence. -- -- Since: 2 showbIntPtrPrec :: Int -> IntPtr -> Builder -- | Convert a WordPtr to a Builder. -- -- Since: 2 showbWordPtr :: WordPtr -> Builder -- | Convert a ForeignPtr to a Builder. Note that this does -- not require the parameterized type to be an instance of Show -- itself. -- -- Since: 2 showbForeignPtr :: ForeignPtr a -> Builder instance TextShow1 ForeignPtr instance TextShow (ForeignPtr a) instance TextShow WordPtr instance TextShow IntPtr instance TextShow1 FunPtr instance TextShow (FunPtr a) instance TextShow1 Ptr instance TextShow (Ptr a) -- | Optional TextShow, TextShow1, and TextShow2 -- instances for functions. -- -- Since: 2 module TextShow.Functions -- | Convert a function to a Builder. -- -- Since: 2 showbFunction :: (a -> b) -> Builder instance TextShow2 (->) instance TextShow1 ((->) a) instance TextShow (a -> b) -- | Monomorphic TextShow functions for generics-related data types. -- -- Since: 2 module TextShow.GHC.Generics -- | Convert a U1 value to a Builder. -- -- Since: 2 showbU1 :: U1 p -> Builder -- | Convert a Par1 value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbPar1PrecWith :: (Int -> p -> Builder) -> Int -> Par1 p -> Builder -- | Convert a Rec1 value to a Builder with the given -- precedence. -- -- Since: 2 showbRec1Prec :: TextShow (f p) => Int -> Rec1 f p -> Builder -- | Convert a Rec1 value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbRec1PrecWith :: TextShow1 f => (Int -> p -> Builder) -> Int -> Rec1 f p -> Builder -- | Convert a K1 value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbK1PrecWith :: (Int -> c -> Builder) -> Int -> K1 i c p -> Builder -- | Convert an M1 value to a Builder with the given -- precedence. -- -- Since: 2 showbM1Prec :: TextShow (f p) => Int -> M1 i c f p -> Builder -- | Convert an M1 value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbM1PrecWith :: TextShow1 f => (Int -> p -> Builder) -> Int -> M1 i c f p -> Builder -- | Convert a '(:+:)' value to a Builder with the given precedence. -- -- Since: 2 showbSumTypePrec :: (TextShow (f p), TextShow (g p)) => Int -> (f :+: g) p -> Builder -- | Convert a '(:+:)' value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbSumTypePrecWith :: (TextShow1 f, TextShow1 g) => (Int -> p -> Builder) -> Int -> (f :+: g) p -> Builder -- | Convert a '(:*:)' value to a Builder with the given precedence. -- -- Since: 2 showbProductTypePrec :: (TextShow (f p), TextShow (g p)) => Int -> (f :*: g) p -> Builder -- | Convert a '(:*:)' value to a Builder with the given show -- function and precedence. -- -- Since: 2 showbProductTypePrecWith :: (TextShow1 f, TextShow1 g) => (Int -> p -> Builder) -> Int -> (f :*: g) p -> Builder -- | Convert a '(:.:)' value to a Builder with the given precedence. -- -- Since: 2 showbCompFunctorsPrec :: TextShow (f (g p)) => Int -> (f :.: g) p -> Builder -- | Convert a '(:.:)' value to a Builder with the given show -- function and precedence. This function is only available with -- base-4.4.0.0 or later. -- -- Since: 2 showbCompFunctorsPrecWith :: (TextShow1 f, TextShow1 g) => (Int -> p -> Builder) -> Int -> (f :.: g) p -> Builder -- | Convert a Fixity value to a Builder with the given -- precedence. -- -- Since: 2 showbFixityPrec :: Int -> Fixity -> Builder -- | Convert an Associativity value to a Builder. This -- function is only available with base-4.4.0.0 or later. -- -- Since: 2 showbAssociativity :: Associativity -> Builder -- | Convert an Arity value to a Builder with the given -- precedence. -- -- Since: 2 showbArityPrec :: Int -> Arity -> Builder instance TextShow Arity instance TextShow Associativity instance TextShow Fixity instance (TextShow1 f0, TextShow1 g0) => TextShow1 (f0 :.: g0) instance TextShow (f (g p)) => TextShow ((:.:) f g p) instance (TextShow1 f0, TextShow1 g0) => TextShow1 (f0 :*: g0) instance (TextShow (f p), TextShow (g p)) => TextShow ((:*:) f g p) instance (TextShow1 f0, TextShow1 g0) => TextShow1 (f0 :+: g0) instance (TextShow (f p), TextShow (g p)) => TextShow ((:+:) f g p) instance TextShow1 f => TextShow1 (M1 i c f) instance TextShow (f p) => TextShow (M1 i c f p) instance TextShow2 (K1 i) instance TextShow c => TextShow1 (K1 i c) instance TextShow c => TextShow (K1 i c p) instance TextShow1 f0 => TextShow1 (Rec1 f0) instance TextShow (f p) => TextShow (Rec1 f p) instance TextShow1 Par1 instance TextShow p0 => TextShow (Par1 p0) instance TextShow1 U1 instance TextShow (U1 p) -- | Monomorphic TextShow function for Naturals. -- -- Since: 2 module TextShow.Numeric.Natural -- | Convert a Natural to a Builder with the given -- precedence. -- -- Since: 2 showbNaturalPrec :: Int -> Natural -> Builder instance TextShow Natural -- | Monomorphic TextShow function for ExitCode. -- -- Since: 2 module TextShow.System.Exit -- | Convert an ExitCode to a Builder with the given -- precedence. -- -- Since: 2 showbExitCodePrec :: Int -> ExitCode -> Builder instance TextShow ExitCode -- | Monomorphic TextShow function for IO-related data types. -- -- Since: 2 module TextShow.System.IO -- | Convert a Handle to a Builder. -- -- Since: 2 showbHandle :: Handle -> Builder -- | Convert an IOMode to a Builder. -- -- Since: 2 showbIOMode :: IOMode -> Builder -- | Convert a BufferMode to a Builder with the given -- precedence. -- -- Since: 2 showbBufferModePrec :: Int -> BufferMode -> Builder -- | Convert a HandlePosn to a Builder. -- -- Since: 2 showbHandlePosn :: HandlePosn -> Builder -- | Convert a SeekMode to a Builder. -- -- Since: 2 showbSeekMode :: SeekMode -> Builder -- | Convert a TextEncoding to a Builder. -- -- Since: 2 showbTextEncoding :: TextEncoding -> Builder -- | Convert a CodingProgress to a Builder. This function is -- only available with base-4.4.0.0 or later. -- -- Since: 2 showbCodingProgress :: CodingProgress -> Builder -- | Convert a CodingFailureMode value to a Builder. This -- function is only available with base-4.4.0.0 or later. -- -- Since: 2 showbCodingFailureMode :: CodingFailureMode -> Builder -- | Convert a Newline to a Builder. -- -- Since: 2 showbNewline :: Newline -> Builder -- | Convert a NewlineMode to a Builder with the given -- precedence. -- -- Since: 2 showbNewlineModePrec :: Int -> NewlineMode -> Builder instance TextShow NewlineMode instance TextShow Newline instance TextShow CodingFailureMode instance TextShow CodingProgress instance TextShow TextEncoding instance TextShow SeekMode instance TextShow HandlePosn instance TextShow BufferMode instance TextShow IOMode instance TextShow Handle -- | Monomorphic TextShow functions for Haskell equivalents of POSIX -- data types. Note that these functions are only available if the -- operating system supports them, so some OSes (e.g., Windows) will not -- be able to use all of the functions in this module. -- -- Since: 2 module TextShow.System.Posix.Types -- | Convert an Fd to a Builder with the given precedence. -- -- Since: 2 showbFdPrec :: Int -> Fd -> Builder -- | Convert a CDev to a Builder. -- -- Since: 2 showbCDev :: CDev -> Builder -- | Convert a CIno to a Builder. -- -- Since: 2 showbCIno :: CIno -> Builder -- | Convert a CMode to a Builder. -- -- Since: 2 showbCMode :: CMode -> Builder -- | Convert a COff to a Builder with the given precedence. -- -- Since: 2 showbCOffPrec :: Int -> COff -> Builder -- | Convert a CPid to a Builder with the given precedence. -- -- Since: 2 showbCPidPrec :: Int -> CPid -> Builder -- | Convert a CSsize to a Builder with the given precedence. -- -- Since: 2 showbCSsizePrec :: Int -> CSsize -> Builder -- | Convert a CGid to a Builder. -- -- Since: 2 showbCGid :: CGid -> Builder -- | Convert a CNlink to a Builder. -- -- Since: 2 showbCNlink :: CNlink -> Builder -- | Convert a CUid to a Builder. -- -- Since: 2 showbCUid :: CUid -> Builder -- | Convert a CCc to a Builder. -- -- Since: 2 showbCCc :: CCc -> Builder -- | Convert a CSpeed to a Builder. -- -- Since: 2 showbCSpeed :: CSpeed -> Builder -- | Convert a CTcflag to a Builder. -- -- Since: 2 showbCTcflag :: CTcflag -> Builder -- | Convert a CRLim to a Builder. -- -- Since: 2 showbCRLim :: CRLim -> Builder instance TextShow Fd instance TextShow CRLim instance TextShow CTcflag instance TextShow CSpeed instance TextShow CCc instance TextShow CUid instance TextShow CNlink instance TextShow CGid instance TextShow CSsize instance TextShow CPid instance TextShow COff instance TextShow CMode instance TextShow CIno instance TextShow CDev -- | Monomorphic TextShow function for Lexeme (and -- Number, if using a recent-enough version of base). -- -- Since: 2 module TextShow.Text.Read -- | Convert a Lexeme to a Builder with the given precedence. -- -- Since: 2 showbLexemePrec :: Int -> Lexeme -> Builder -- | Convert a Number to a Builder with the given precedence. -- This function is only available with base-4.7.0.0 or later. -- -- Since: 2 showbNumberPrec :: Int -> Number -> Builder instance TextShow Number instance TextShow Lexeme -- | Monomorphic TextShow function for Fingerprint values. -- This module only exports functions if using base-4.4.0.0 or -- later. -- -- Since: 2 module TextShow.GHC.Fingerprint -- | Convert a Fingerprint to a Builder. This function is -- only available with base-4.4.0.0 or later. -- -- Since: 2 showbFingerprint :: Fingerprint -> Builder instance TextShow Fingerprint -- | Monomorphic TextShow functions for data types in the -- Event module. This module only exports functions if using -- base-4.4.0.0 on a platform other than Windows or GHCJS. -- -- Since: 2 module TextShow.GHC.Event -- | Convert an Event to a Builder. This function is only -- available with base-4.4.0.0 or later and is not available on -- Windows. -- -- Since: 2 showbEvent :: Event -> Builder -- | Convert an FdKey to a Builder with the given precedence. -- This function is only available with base-4.4.0.0 or later -- and is not available on Windows. -- -- Since: 2 showbFdKeyPrec :: Int -> FdKey -> Builder instance TextShow FdKey instance TextShow Event -- | Monomorphic TextShow function for GCStats. This module -- only exports functions if using base-4.5.0.0 or later. -- -- Since: 2 module TextShow.GHC.Stats -- | Convert a GCStats value to a Builder with the given -- precedence. This function is only available with base-4.5.0.0 -- or later. -- -- Since: 2 showbGCStatsPrec :: Int -> GCStats -> Builder instance TextShow GCStats -- | Monomorphic TextShow functions for data types in the -- GHC.TypeLits module. This module only exports functions if -- using base-4.6.0.0 or later. -- -- Since: 2 module TextShow.GHC.TypeLits -- | Convert a SomeNat value to a Builder with the given -- precedence. This function is only available with base-4.7.0.0 -- or later. -- -- Since: 2 showbSomeNatPrec :: Int -> SomeNat -> Builder -- | Convert a SomeSymbol value to a Builder with the given -- precedence. This function is only available with base-4.7.0.0 -- or later. -- -- Since: 2 showbSomeSymbol :: SomeSymbol -> Builder instance TextShow SomeSymbol instance TextShow SomeNat -- | Monomorphic TextShow function for representational equality. -- This module only exports functions if using base-4.7.0.0 or -- later. -- -- Since: 2 module TextShow.Data.Type.Coercion -- | Convert a representational equality value to a Builder. This -- function is only available with base-4.7.0.0 or later. -- -- Since: 2 showbCoercion :: Coercion a b -> Builder instance TextShow2 Coercion instance TextShow1 (Coercion a) instance TextShow (Coercion a b) -- | Monomorphic TextShow function for propositional equality. This -- module only exports functions if using base-4.7.0.0 or later. -- -- Since: 2 module TextShow.Data.Type.Equality -- | Convert a propositional equality value to a Builder. This -- function is only available with base-4.7.0.0 or later. -- -- Since: 2 showbPropEquality :: (a :~: b) -> Builder instance TextShow2 (:~:) instance TextShow1 ((:~:) a) instance TextShow (a :~: b) -- | Monomorphic TextShow functions for data types in the -- OldTypeable module. This module only exports functions if -- using base-4.7. -- -- Since: 2 module TextShow.Data.OldTypeable -- | Convert a TyCon to a Builder. This function is only -- available with base-4.7. -- -- Since: 2 showbTyCon :: TyCon -> Builder -- | Convert a TypeRep to a Builder with the given -- precedence. This function is only available with base-4.7. -- -- Since: 2 showbTypeRepPrec :: Int -> TypeRep -> Builder instance TextShow TypeRep instance TextShow TyCon -- | Functions to mechanically derive TextShow, -- TextShow1, or TextShow2 instances, or to splice -- show-related expressions into Haskell source code. You need -- to enable the TemplateHaskell language extension in order to -- use this module. -- -- Since: 2 module TextShow.TH -- | Generates a TextShow instance declaration for the given data -- type or data family instance. -- -- Since: 2 deriveTextShow :: Name -> Q [Dec] -- | Generates a TextShow1 instance declaration for the given data -- type or data family instance. -- -- Since: 2 deriveTextShow1 :: Name -> Q [Dec] -- | Generates a TextShow2 instance declaration for the given data -- type or data family instance. -- -- Since: 2 deriveTextShow2 :: Name -> Q [Dec] -- | Generates a lambda expression which behaves like showt -- (without requiring a TextShow instance). -- -- Since: 2 makeShowt :: Name -> Q Exp -- | Generates a lambda expression which behaves like showtl -- (without requiring a TextShow instance). -- -- Since: 2 makeShowtl :: Name -> Q Exp -- | Generates a lambda expression which behaves like showtPrec -- (without requiring a TextShow instance). -- -- Since: 2 makeShowtPrec :: Name -> Q Exp -- | Generates a lambda expression which behaves like showtlPrec -- (without requiring a TextShow instance). -- -- Since: 2 makeShowtlPrec :: Name -> Q Exp -- | Generates a lambda expression which behaves like showtList -- (without requiring a TextShow instance). -- -- Since: 2 makeShowtList :: Name -> Q Exp -- | Generates a lambda expression which behaves like showtlList -- (without requiring a TextShow instance). -- -- Since: 2 makeShowtlList :: Name -> Q Exp -- | Generates a lambda expression which behaves like showb (without -- requiring a TextShow instance). -- -- Since: 2 makeShowb :: Name -> Q Exp -- | Generates a lambda expression which behaves like showbPrec -- (without requiring a TextShow instance). -- -- Since: 2 makeShowbPrec :: Name -> Q Exp -- | Generates a lambda expression which behaves like showbList -- (without requiring a TextShow instance). -- -- Since: 2 makeShowbList :: Name -> Q Exp -- | Generates a lambda expression which behaves like printT -- (without requiring a TextShow instance). -- -- Since: 2 makePrintT :: Name -> Q Exp -- | Generates a lambda expression which behaves like printTL -- (without requiring a TextShow instance). -- -- Since: 2 makePrintTL :: Name -> Q Exp -- | Generates a lambda expression which behaves like hPrintT -- (without requiring a TextShow instance). -- -- Since: 2 makeHPrintT :: Name -> Q Exp -- | Generates a lambda expression which behaves like hPrintTL -- (without requiring a TextShow instance). -- -- Since: 2 makeHPrintTL :: Name -> Q Exp -- | Generates a lambda expression which behaves like showbPrecWith -- (without requiring a TextShow1 instance). -- -- Since: 2 makeShowbPrecWith :: Name -> Q Exp -- | Generates a lambda expression which behaves like showbPrec1 -- (without requiring a TextShow1 instance). -- -- Since: 2 makeShowbPrec1 :: Name -> Q Exp -- | Generates a lambda expression which behaves like showbPrecWith2 -- (without requiring a TextShow2 instance). -- -- Since: 2 makeShowbPrecWith2 :: Name -> Q Exp -- | Generates a lambda expression which behaves like showbPrecWith2 -- (without requiring a TextShow2 instance). -- -- Since: 2 makeShowbPrec2 :: Name -> Q Exp -- | Functions for tracing and monitoring execution. -- -- These can be useful for investigating bugs or performance problems. -- They should not be used in production code. -- -- If you do not wish to require TextShow instances for your -- trace functions, the TextShow.Debug.Trace.TH and -- Text.Show.Text.Debug.Trace.Generic modules exist to convert the -- input to a debug message using Template Haskell or generics, -- respectively. -- -- Since: 2 module TextShow.Debug.Trace -- | The tracet function outputs the trace message given as its -- first argument, before returning the second argument as its result. -- -- For example, this returns the value of f x but first outputs -- the message. -- --
--   tracet ("calling f with x = " <> showt x) (f x)
--   
-- -- The tracet function should only be used for debugging, -- or for monitoring execution. The function is not referentially -- transparent: its type indicates that it is a pure function but it has -- the side effect of outputting the trace message. -- -- Since: 2 tracet :: Text -> a -> a -- | Like tracet but accepts a lazy Text argument. -- -- Since: 2 tracetl :: Text -> a -> a -- | Like tracet but returns the message instead of a third value. -- -- Since: 2 tracetId :: Text -> Text -- | Like tracetId but accepts a lazy Text argument. -- -- Since: 2 tracetlId :: Text -> Text -- | Like tracet, but uses showt on the argument to convert -- it to a Text. -- -- This makes it convenient for printing the values of interesting -- variables or expressions inside a function. For example here we print -- the value of the variables x and z: -- --
--   f x y =
--       traceTextShow (x, z) $ result
--     where
--       z = ...
--       ...
--   
-- -- Since: 2 traceTextShow :: TextShow a => a -> b -> b -- | Like traceTextShow but returns the shown value instead of a -- third value. -- -- Since: 2 traceTextShowId :: TextShow a => a -> a -- | Like tracet but additionally prints a call stack if one is -- available. -- -- In the current GHC implementation, the call stack is only availble if -- the program was compiled with -prof; otherwise -- tracetStack behaves exactly like tracet. Entries in the -- call stack correspond to SCC annotations, so it is a good -- idea to use -fprof-auto or -fprof-auto-calls to add -- SCC annotations automatically. -- -- Since: 2 tracetStack :: Text -> a -> a -- | Like tracetStack but accepts a lazy Text argument. -- -- Since: 2 tracetlStack :: Text -> a -> a -- | The tracetIO function outputs the trace message from the IO -- monad. This sequences the output with respect to other IO actions. -- -- Since: 2 tracetIO :: Text -> IO () -- | Like tracetIO but accepts a lazy Text argument. -- -- Since: 2 tracetlIO :: Text -> IO () -- | Like tracet but returning unit in an arbitrary -- Applicative context. Allows for convenient use in do-notation. -- Note that the application of tracet is not an action in the -- Applicative context, as tracetIO is in the IO -- type. -- --
--   ... = do
--     x <- ...
--     tracetM $ "x: " <> showt x
--     y <- ...
--     tracetM $ "y: " <> showt y
--   
-- -- Since: 2 tracetM :: Applicative f => Text -> f () -- | Like tracetM but accepts a lazy Text argument. tracetlM :: Applicative f => Text -> f () -- | Like tracetM, but uses showt on the argument to convert -- it to a Text. -- --
--   ... = do
--     x <- ...
--     traceTextShowM x
--     y <- ...
--     traceTextShowM $ x + y
--   
-- -- Since: 2 traceTextShowM :: (TextShow a, Applicative f) => a -> f () -- | The tracetEvent function behaves like tracet with the -- difference that the message is emitted to the eventlog, if eventlog -- profiling is available and enabled at runtime. -- -- It is suitable for use in pure code. In an IO context use -- tracetEventIO instead. -- -- Note that when using GHC's SMP runtime, it is possible (but rare) to -- get duplicate events emitted if two CPUs simultaneously evaluate the -- same thunk that uses traceEvent. -- -- Since: 2 tracetEvent :: Text -> a -> a -- | Like tracetEvent but accepts a lazy Text argument. -- -- Since: 2 tracetlEvent :: Text -> a -> a -- | The tracetEventIO function emits a message to the eventlog, if -- eventlog profiling is available and enabled at runtime. -- -- Compared to tracetEvent, tracetEventIO sequences the -- event with respect to other IO actions. -- -- Since: 2 tracetEventIO :: Text -> IO () -- | Like tracetEventIO but accepts a lazy Text argument. -- -- Since: 2 tracetlEventIO :: Text -> IO () -- | The tracetMarker function emits a marker to the eventlog, if -- eventlog profiling is available and enabled at runtime. The -- Text is the name of the marker. The name is just used in the -- profiling tools to help you keep clear which marker is which. -- -- This function is suitable for use in pure code. In an IO context use -- tracetMarkerIO instead. -- -- Note that when using GHC's SMP runtime, it is possible (but rare) to -- get duplicate events emitted if two CPUs simultaneously evaluate the -- same thunk that uses traceMarker. -- -- Since: 2 tracetMarker :: Text -> a -> a -- | Like tracetMarker but accepts a lazy Text argument. -- -- Since: 2 tracetlMarker :: Text -> a -> a -- | The tracetMarkerIO function emits a marker to the eventlog, if -- eventlog profiling is available and enabled at runtime. -- -- Compared to tracetMarker, tracetMarkerIO sequences the -- event with respect to other IO actions. -- -- Since: 2 tracetMarkerIO :: Text -> IO () -- | Like tracetMarkerIO but accepts a lazy Text argument. -- -- Since: 2 tracetlMarkerIO :: Text -> IO () -- | Functions that splice traces into source code which take an arbitrary -- data type or data family instance as an argument (even if it is not an -- instance of TextShow). You need to enable the -- TemplateHaskell language extension in order to use this -- module. -- -- Since: 2 module TextShow.Debug.Trace.TH -- | Generates a lambda expression which behaves like traceTextShow -- (without requiring a TextShow instance). -- -- Since: 2 makeTraceTextShow :: Name -> Q Exp -- | Generates a lambda expression which behaves like -- traceTextShowId (without requiring a TextShow -- instance). -- -- Since: 2 makeTraceTextShowId :: Name -> Q Exp -- | Generates a lambda expression which behaves like traceTextShowM -- (without requiring a TextShow instance). -- -- Since: 2 makeTraceTextShowM :: Name -> Q Exp -- | Generic versions of TextShow and TextShow1 class -- functions, as an alternative to TextShow.TH, which uses -- Template Haskell. Because there is no Generic2 class, -- TextShow2 cannot be implemented generically. -- -- This implementation is based off of the -- Generics.Deriving.Show module from the -- generic-deriving library. -- -- Since: 2 module TextShow.Generic -- | A Generic implementation of showt. -- -- Since: 2 genericShowt :: (Generic a, GTextShow (Rep a)) => a -> Text -- | A Generic implementation of showtl. -- -- Since: 2 genericShowtl :: (Generic a, GTextShow (Rep a)) => a -> Text -- | A Generic implementation of showPrect. -- -- Since: 2 genericShowtPrec :: (Generic a, GTextShow (Rep a)) => Int -> a -> Text -- | A Generic implementation of showtlPrec. -- -- Since: 2 genericShowtlPrec :: (Generic a, GTextShow (Rep a)) => Int -> a -> Text -- | A Generic implementation of showtList. -- -- Since: 2 genericShowtList :: (Generic a, GTextShow (Rep a)) => [a] -> Text -- | A Generic implementation of showtlList. -- -- Since: 2 genericShowtlList :: (Generic a, GTextShow (Rep a)) => [a] -> Text -- | A Generic implementation of showb. -- -- Since: 2 genericShowb :: (Generic a, GTextShow (Rep a)) => a -> Builder -- | A Generic implementation of showbPrec. -- -- Since: 2 genericShowbPrec :: (Generic a, GTextShow (Rep a)) => Int -> a -> Builder -- | A Generic implementation of showbList. -- -- Since: 2 genericShowbList :: (Generic a, GTextShow (Rep a)) => [a] -> Builder -- | A Generic implementation of printT. -- -- Since: 2 genericPrintT :: (Generic a, GTextShow (Rep a)) => a -> IO () -- | A Generic implementation of printTL. -- -- Since: 2 genericPrintTL :: (Generic a, GTextShow (Rep a)) => a -> IO () -- | A Generic implementation of hPrintT. -- -- Since: 2 genericHPrintT :: (Generic a, GTextShow (Rep a)) => Handle -> a -> IO () -- | A Generic implementation of hPrintTL. -- -- Since: 2 genericHPrintTL :: (Generic a, GTextShow (Rep a)) => Handle -> a -> IO () -- | A Generic1 implementation of showbPrecWith. -- -- Since: 2 genericShowbPrecWith :: (Generic1 f, GTextShow1 (Rep1 f)) => (Int -> a -> Builder) -> Int -> f a -> Builder -- | A 'Generic'/'Generic1' implementation of showbPrec1. -- -- Since: 2 genericShowbPrec1 :: (Generic a, Generic1 f, GTextShow (Rep a), GTextShow1 (Rep1 f)) => Int -> f a -> Builder -- | Class of generic representation types (Rep) that can be -- converted to a Builder. -- -- Since: 2 class GTextShow f where isNullary = error "generic showbPrec (isNullary): unnecessary case" gShowbPrec :: GTextShow f => ConType -> Int -> f a -> Builder isNullary :: GTextShow f => f a -> Bool -- | Class of generic representation types (Rep1) that can be -- converted to a Builder by lifting through a unary type -- constructor. -- -- Since: 2 class GTextShow1 f where isNullary1 = error "generic showbPrecWith (isNullary1): unnecessary case" gShowbPrecWith :: GTextShow1 f => ConType -> (Int -> a -> Builder) -> Int -> f a -> Builder isNullary1 :: GTextShow1 f => f a -> Bool -- | Whether a constructor is a record (Rec), a tuple (Tup), -- is prefix (Pref), or infix (Inf). -- -- Since: 2 data ConType Rec :: ConType Tup :: ConType Pref :: ConType Inf :: String -> ConType instance Typeable ConType instance Typeable GTextShow1 instance Typeable GTextShow instance Eq ConType instance Ord ConType instance Read ConType instance Show ConType instance Generic ConType instance Datatype D1ConType instance Constructor C1_0ConType instance Constructor C1_1ConType instance Constructor C1_2ConType instance Constructor C1_3ConType instance (TextShow1 f, GTextShow1 g) => GTextShow1 (f :.: g) instance (GTextShow1 f, GTextShow1 g) => GTextShow1 (f :*: g) instance (GTextShow1 f, GTextShow1 g) => GTextShow1 (f :+: g) instance GTextShow1 f => GTextShow1 (D1 d f) instance (Selector s, GTextShow1 f) => GTextShow1 (S1 s f) instance (Constructor c, GTextShow1 f) => GTextShow1 (C1 c f) instance TextShow1 f => GTextShow1 (Rec1 f) instance TextShow c => GTextShow1 (K1 i c) instance GTextShow1 Par1 instance GTextShow1 U1 instance (GTextShow f, GTextShow g) => GTextShow (f :*: g) instance (GTextShow f, GTextShow g) => GTextShow (f :+: g) instance GTextShow f => GTextShow (D1 d f) instance (Selector s, GTextShow f) => GTextShow (S1 s f) instance (Constructor c, GTextShow f) => GTextShow (C1 c f) instance TextShow c => GTextShow (K1 i c) instance GTextShow U1 instance TextShow ConType -- | Functions that trace the values of Generic instances (even if -- they are not instances of TextShow). -- -- Since: 2 module TextShow.Debug.Trace.Generic -- | A Generic implementation of traceTextShow. -- -- Since: 2 genericTraceTextShow :: (Generic a, GTextShow (Rep a)) => a -> b -> b -- | A Generic implementation of traceTextShowId. -- -- Since: 2 genericTraceTextShowId :: (Generic a, GTextShow (Rep a)) => a -> a -- | A Generic implementation of traceShowM. -- -- Since: 2 genericTraceTextShowM :: (Generic a, GTextShow (Rep a), Applicative f) => a -> f () -- | Efficiently convert from values to Text via Builders. -- -- Since: 2 module 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.Monoid
--   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 genericShowbPrec. -- -- Since: 2 class TextShow a where showbPrec _ = showb showb = showbPrec 0 showbList = showbListWith showb showbPrec :: TextShow a => Int -> a -> Builder showb :: TextShow a => a -> Builder showbList :: TextShow a => [a] -> Builder -- | Constructs a strict Text from a single value. -- -- Since: 2 showt :: TextShow a => a -> Text -- | Constructs a lazy Text from a single value. -- -- Since: 2 showtl :: TextShow a => a -> Text -- | Constructs a strict Text from a single value with the given -- precedence. -- -- Since: 2 showtPrec :: TextShow a => Int -> a -> Text -- | Constructs a lazy Text from a single value with the given -- precedence. -- -- Since: 2 showtlPrec :: TextShow a => Int -> a -> Text -- | Construct a strict Text from a list of values. -- -- Since: 2 showtList :: TextShow a => [a] -> Text -- | Construct a lazy Text from a list of values. -- -- Since: 2 showtlList :: TextShow a => [a] -> Text -- | Surrounds Builder output with parentheses if the Bool -- parameter is True. -- -- Since: 2 showbParen :: Bool -> Builder -> Builder -- | Construct a Builder containing a single space character. -- -- Since: 2 showbSpace :: Builder -- | Lifting of the TextShow class to unary type constructors. -- -- Since: 2 class TextShow1 f showbPrecWith :: TextShow1 f => (Int -> a -> Builder) -> Int -> f a -> Builder -- | Lift the standard showbPrec function through the type -- constructor. -- -- Since: 2 showbPrec1 :: (TextShow1 f, TextShow a) => Int -> f a -> Builder -- | showbUnaryWith sp n p x produces the Builder -- representation of a unary data constructor with name n and -- argument x, in precedence context p, using the -- function sp to show occurrences of the type argument. -- -- Since: 2 showbUnaryWith :: (Int -> a -> Builder) -> Builder -> Int -> a -> Builder -- | Lifting of the TextShow class to binary type constructors. -- -- Since: 2 class TextShow2 f showbPrecWith2 :: TextShow2 f => (Int -> a -> Builder) -> (Int -> b -> Builder) -> Int -> f a b -> Builder -- | Lift two showbPrec functions through the type constructor. -- -- Since: 2 showbPrec2 :: (TextShow2 f, TextShow a, TextShow b) => Int -> f a b -> Builder -- | showbBinaryWith sp n p x y produces the Builder -- representation of a binary data constructor with name n and -- arguments x and y, in precedence context p, -- using the functions sp1 and sp2 to show occurrences -- of the type arguments. -- -- Since: 2 showbBinaryWith :: (Int -> a -> Builder) -> (Int -> b -> Builder) -> Builder -> Int -> a -> b -> Builder -- | A Builder is an efficient way to build lazy Text -- values. There are several functions for constructing builders, but -- only one to inspect them: to extract any data, you have to turn them -- into lazy Text values using toLazyText. -- -- Internally, a builder constructs a lazy Text by filling -- arrays piece by piece. As each buffer is filled, it is 'popped' off, -- to become a new chunk of the resulting lazy Text. All this is -- hidden from the user of the Builder. data Builder :: * -- | Convert a Builder to a strict Text. -- -- Since: 2 toText :: Builder -> Text -- | O(n). Extract a lazy Text from a Builder with -- a default buffer size. The construction work takes place if and when -- the relevant part of the lazy Text is demanded. toLazyText :: Builder -> Text -- | O(n). Extract a lazy Text from a Builder, -- using the given size for the initial buffer. The construction work -- takes place if and when the relevant part of the lazy Text is -- demanded. -- -- If the initial buffer is too small to hold all data, subsequent -- buffers will be the default buffer size. toLazyTextWith :: Int -> Builder -> Text -- | Convert a Builder to a String (without surrounding it -- with double quotes, as show would). -- -- Since: 2 toString :: Builder -> String -- | O(1). A Builder taking a single character, satisfying -- -- singleton :: Char -> Builder -- | O(1). A Builder taking a Text, satisfying -- -- fromText :: Text -> Builder -- | O(1). A Builder taking a lazy Text, -- satisfying -- -- fromLazyText :: Text -> Builder -- | O(1). A Builder taking a String, satisfying -- -- fromString :: String -> Builder -- | O(1). Pop the strict Text we have constructed so far, -- if any, yielding a new chunk in the result lazy Text. flush :: Builder -- | Computes the length of a Builder. -- -- Since: 2 lengthB :: Builder -> Int64 -- | Merges several Builders, separating them by newlines. -- -- Since: 2 unlinesB :: [Builder] -> Builder -- | Merges several Builders, separating them by spaces. -- -- Since: 2 unwordsB :: [Builder] -> Builder -- | Writes a value's strict Text representation to the standard -- output, followed by a newline. -- -- Since: 2 printT :: TextShow a => a -> IO () -- | Writes a value's lazy Text representation to the standard -- output, followed by a newline. -- -- Since: 2 printTL :: TextShow a => a -> IO () -- | Writes a value's strict Text representation to a file handle, -- followed by a newline. -- -- Since: 2 hPrintT :: TextShow a => Handle -> a -> IO () -- | Writes a value's lazy Text representation to a file handle, -- followed by a newline. -- -- Since: 2 hPrintTL :: TextShow a => Handle -> a -> IO () -- | The TextShow instance for FromStringShow is based on its -- String Show instance. That is, -- --
--   showbPrec p (FromStringShow x) = fromString (showsPrec p x "")
--   
-- -- Since: 2 newtype FromStringShow a FromStringShow :: a -> FromStringShow a fromStringShow :: FromStringShow a -> a -- | The String Show instance for FromTextShow is -- based on its TextShow instance. That is, -- --
--   showsPrec p (FromTextShow x) = showString (toString (showbPrec p x))
--   
-- -- Since: 2 newtype FromTextShow a FromTextShow :: a -> FromTextShow a fromTextShow :: FromTextShow a -> a