{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -Wall -fno-warn-orphans -Werror #-}
module Data.Tuple.Append.Instances.Text () where
import Data.Text.Internal.Fusion.Types(Stream)
import qualified Data.Text.Internal.Fusion.Common as TIF(append, cons, snoc)
import Data.Tuple.Append.Class(TupleAddL((<++)), TupleAddR((++>)), TupleAppend((+++)))
import Data.Tuple.Append.Instances.Text.Safe()
instance TupleAddL Char (Stream Char) (Stream Char) where
<++ :: Char -> Stream Char -> Stream Char
(<++) = Char -> Stream Char -> Stream Char
TIF.cons
instance TupleAddR (Stream Char) Char (Stream Char) where
++> :: Stream Char -> Char -> Stream Char
(++>) = Stream Char -> Char -> Stream Char
TIF.snoc
instance TupleAppend (Stream Char) (Stream Char) (Stream Char) where
+++ :: Stream Char -> Stream Char -> Stream Char
(+++) = Stream Char -> Stream Char -> Stream Char
TIF.append