    {-# LANGUAGE CPP #-}
    {-# OPTIONS_GHC -Wno-orphans #-}

    module IsomorphismClass.Relations.StrictTextBuilderAndText where

    #if MIN_VERSION_text(2,0,2)

    import qualified Data.Text.Encoding
    import IsomorphismClass.Classes
    import IsomorphismClass.Prelude

    instance IsomorphicTo Text Data.Text.Encoding.StrictBuilder where
      to :: StrictBuilder -> Text
    to = StrictBuilder -> Text
    Data.Text.Encoding.strictBuilderToText

    instance IsomorphicTo Data.Text.Encoding.StrictBuilder Text where
      to :: Text -> StrictBuilder
    to = Text -> StrictBuilder
    Data.Text.Encoding.textToStrictBuilder

    #endif