module Text.Show.Text.Data.Either (showbEitherPrec) where
import Data.Text.Lazy.Builder (Builder)
import Prelude hiding (Show)
import Text.Show.Text.Classes (Show(showbPrec), Show1(showbPrec1))
import Text.Show.Text.TH.Internal (deriveShowPragmas, defaultInlineShowbPrec)
#include "inline.h"
showbEitherPrec :: (Show a, Show b) => Int -> Either a b -> Builder
showbEitherPrec = showbPrec
$(deriveShowPragmas defaultInlineShowbPrec ''Either)
instance Show a => Show1 (Either a) where
showbPrec1 = showbPrec
INLINE_INST_FUN(showbPrec1)