attoparsec-conduit 0.5.0 → 0.5.0.1
raw patch · 3 files changed
+9/−11 lines, 3 filesdep −HUnitdep ~basedep ~hspecPVP ok
version bump matches the API change (PVP)
Dependencies removed: HUnit
Dependency ranges changed: base, hspec
API changes (from Hackage documentation)
Files
- Data/Conduit/Attoparsec.hs +1/−0
- attoparsec-conduit.cabal +3/−4
- test/main.hs +5/−7
Data/Conduit/Attoparsec.hs view
@@ -1,5 +1,6 @@ {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FlexibleContexts #-}+{-# LANGUAGE RankNTypes #-} -- | -- Copyright: 2011 Michael Snoyman, 2010 John Millikin
attoparsec-conduit.cabal view
@@ -1,12 +1,12 @@ Name: attoparsec-conduit-Version: 0.5.0+Version: 0.5.0.1 Synopsis: Consume attoparsec parsers via conduit. Description: Consume attoparsec parsers via conduit. License: BSD3 License-file: LICENSE Author: Michael Snoyman Maintainer: michael@snoyman.com-Category: Data, Conduit+Category: Data, Conduit, Parsing Build-type: Simple Cabal-version: >=1.8 Homepage: http://github.com/snoyberg/conduit@@ -29,8 +29,7 @@ cpp-options: -DTEST build-depends: conduit , base- , hspec- , HUnit+ , hspec == 1.3.* , text , resourcet , attoparsec
test/main.hs view
@@ -1,9 +1,7 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE CPP #-} {-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}-import Test.Hspec.Monadic-import Test.Hspec.HUnit ()-import Test.HUnit+import Test.Hspec import Control.Exception (fromException) import Data.Conduit@@ -28,7 +26,7 @@ Left e -> case fromException e of Just pe -> do- errorPosition pe @?= Position badLine badCol+ errorPosition pe `shouldBe` Position badLine badCol it "works for bytestring" $ do let input = ["aaa\na", "aaa\n\n", "aaa", "aab\n\naaaa"] badLine = 4@@ -40,7 +38,7 @@ Left e -> case fromException e of Just pe -> do- errorPosition pe @?= Position badLine badCol+ errorPosition pe `shouldBe` Position badLine badCol it "works in last chunk" $ do let input = ["aaa\na", "aaa\n\n", "aaa", "aab\n\naaaa"] badLine = 6@@ -52,7 +50,7 @@ Left e -> case fromException e of Just pe -> do- errorPosition pe @?= Position badLine badCol+ errorPosition pe `shouldBe` Position badLine badCol it "works in last chunk" $ do let input = ["aaa\na", "aaa\n\n", "aaa", "aa\n\naaaab"] badLine = 6@@ -64,4 +62,4 @@ Left e -> case fromException e of Just pe -> do- errorPosition pe @?= Position badLine badCol+ errorPosition pe `shouldBe` Position badLine badCol