Commits

Bryan O'Sullivan committed d6bd8d7

Remove duplicate instance

Comments (0)

Files changed (1)

Data/Attoparsec/Text.hs

 {-# LANGUAGE BangPatterns, FlexibleInstances, TypeSynonymInstances #-}
-{-# OPTIONS_GHC -fno-warn-orphans #-}
 
 -- |
 -- Module      :  Data.Attoparsec.Text
 import Data.Char (isAlpha, isDigit, isSpace, ord)
 import Data.Int (Int8, Int16, Int32, Int64)
 import Data.Ratio ((%))
-import Data.String (IsString(..))
 import Data.Text (Text)
 import Data.Word (Word8, Word16, Word32, Word64, Word)
 import qualified Data.Attoparsec.Internal.Types as T
 import qualified Data.Attoparsec.Text.Internal as I
 import qualified Data.Text as T
 
-instance IsString (Parser Text) where
-    fromString = I.string . T.pack
-
 -- $parsec
 --
 -- Compared to Parsec 3, Attoparsec makes several tradeoffs.  It is