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

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

TextShow.Data.Ratio

Contents

Description

Monomorphic TextShow function for Ratio values.

Since: 2

Synopsis

Documentation

showbRatioPrec :: TextShow a => Int -> Ratio a -> Builder Source #

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

Orphan instances

TextShow1 Ratio Source # 

Methods

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

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

TextShow a => TextShow (Ratio a) Source # 

Methods

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

showb :: Ratio a -> Builder Source #

showbList :: [Ratio a] -> Builder Source #

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

showt :: Ratio a -> Text Source #

showtList :: [Ratio a] -> Text Source #

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

showtl :: Ratio a -> Text Source #

showtlList :: [Ratio a] -> Text Source #