{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module TextShow.Data.Complex () where
import Data.Complex (Complex)
import TextShow.Classes (TextShow(..))
import TextShow.Data.Floating ()
import TextShow.TH.Internal (deriveTextShow1, makeShowbPrec)
instance TextShow a => TextShow (Complex a) where
{-# SPECIALIZE instance TextShow (Complex Float) #-}
{-# SPECIALIZE instance TextShow (Complex Double) #-}
showbPrec = $(makeShowbPrec ''Complex)
{-# INLINE showbPrec #-}
$(deriveTextShow1 ''Complex)