packages feed

attoparsec-parsec 0.1.2 → 0.1.3

raw patch · 2 files changed

+5/−2 lines, 2 files

Files

attoparsec-parsec.cabal view
@@ -1,5 +1,5 @@ name:             attoparsec-parsec-version:          0.1.2+version:          0.1.3 license:          MIT license-file:     LICENSE copyright:        (c) 2011, 2012 Simon Hengel
src/Data/Attoparsec/Text/Parsec.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE TypeFamilies, FlexibleInstances #-}+{-# LANGUAGE CPP, TypeFamilies, FlexibleInstances #-} {-# OPTIONS_GHC -fno-warn-orphans #-} -- | -- This module implements "Data.Attoparsec.Text" in terms of Parsec.  It can be@@ -128,6 +128,9 @@  import qualified Data.Attoparsec.Text as A import           Data.Attoparsec.Combinator+#if MIN_VERSION_attoparsec(0,11,2)+  hiding (try, endOfInput, atEnd, (<?>))+#endif  parseOnly :: Parser a -> Text -> Either String a parseOnly p = either (Left . show) (Right) . Parsec.parse p ""