module TextShow.Data.Ord (
showbOrdering
#if MIN_VERSION_base(4,6,0)
, showbDownPrecWith
#endif
) where
import Data.Text.Lazy.Builder (Builder)
import TextShow.Classes (showb)
import TextShow.TH.Internal (deriveTextShow)
#if MIN_VERSION_base(4,6,0)
import Data.Ord (Down)
import TextShow.Classes (showbPrecWith)
import TextShow.TH.Internal (deriveTextShow1)
#endif
#include "inline.h"
showbOrdering :: Ordering -> Builder
showbOrdering = showb
#if MIN_VERSION_base(4,6,0)
showbDownPrecWith :: (Int -> a -> Builder) -> Int -> Down a -> Builder
showbDownPrecWith = showbPrecWith
#endif
$(deriveTextShow ''Ordering)
#if MIN_VERSION_base(4,6,0)
$(deriveTextShow ''Down)
$(deriveTextShow1 ''Down)
#endif