text-show-3.6: Efficient conversion of values into Text

Copyright(C) 2014-2017 Ryan Scott
LicenseBSD-style (see the file LICENSE)
MaintainerRyan Scott
StabilityProvisional
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

TextShow.Data.Ratio

Contents

Description

TextShow instance for Ratio.

Since: 2

Orphan instances

TextShow1 Ratio #

Only available with base-4.4.0.0 or later.

Since: 2

Methods

liftShowbPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> Ratio a -> Builder #

liftShowbList :: (Int -> a -> Builder) -> ([a] -> Builder) -> [Ratio a] -> Builder #

TextShow a => TextShow (Ratio a) #

Note that on base-4.3.0.0, this must have a (TextShow a, Integral a) constraint instead of just a (TextShow a) constraint.

Since: 2

Methods

showbPrec :: Int -> Ratio a -> Builder #

showb :: Ratio a -> Builder #

showbList :: [Ratio a] -> Builder #

showtPrec :: Int -> Ratio a -> Text #

showt :: Ratio a -> Text #

showtList :: [Ratio a] -> Text #

showtlPrec :: Int -> Ratio a -> Text #

showtl :: Ratio a -> Text #

showtlList :: [Ratio a] -> Text #