    {-# LANGUAGE CPP #-}
    {-# OPTIONS_GHC -fno-warn-orphans #-}
    {-|
    Module:      TextShow.Data.List
    Copyright:   (C) 2014-2015 Ryan Scott
    License:     BSD-style (see the file LICENSE)
    Maintainer:  Ryan Scott
    Stability:   Provisional
    Portability: GHC

    Exports 'showbListWith'.
    -}
    module TextShow.Data.List (showbListWith) where

    import TextShow.Classes (TextShow(showb, showbList), TextShow1(..), showbListWith)
    import TextShow.Data.Char ()
    import TextShow.Data.Integral ()

    #include "inline.h"

    instance TextShow a => TextShow [a] where
        {-# SPECIALIZE instance TextShow [String] #-}
        {-# SPECIALIZE instance TextShow String   #-}
        {-# SPECIALIZE instance TextShow [Int]    #-}
        showb = showbList
        INLINE_INST_FUN(showb)

    instance TextShow1 [] where
        showbPrecWith sp _ = showbListWith (sp 0)
        INLINE_INST_FUN(showbPrecWith)