opml-conduit 0.6.0.3 → 0.6.0.4
raw patch · 3 files changed
+32/−22 lines, 3 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- opml-conduit.cabal +19/−2
- test/HLint.hs +8/−0
- test/Main.hs +5/−20
opml-conduit.cabal view
@@ -1,5 +1,5 @@ name: opml-conduit-version: 0.6.0.3+version: 0.6.0.4 synopsis: Streaming parser/renderer for the OPML 2.0 format. description: This library implements the OPML 2.0 standard (<http://dev.opml.org/spec2.html>) as a 'conduit' parser/renderer.@@ -23,6 +23,11 @@ type: git location: git://github.com/k0ral/opml-conduit.git +flag enable-hlint-test+ description: Enable hlint test-suite+ manual: True+ default: False+ library exposed-modules: Text.OPML@@ -64,7 +69,6 @@ , conduit-combinators , containers , data-default- , hlint , lens-simple , mono-traversable , mtl@@ -83,3 +87,16 @@ , xml-conduit >= 1.3 default-language: Haskell2010 ghc-options: -Wall -fno-warn-orphans++test-suite hlint+ if flag(enable-hlint-test)+ buildable: True+ else+ buildable: False+ type: exitcode-stdio-1.0+ main-is: HLint.hs+ build-depends:+ base >=4.8,+ hlint -any+ default-language: Haskell2010+ hs-source-dirs: test
+ test/HLint.hs view
@@ -0,0 +1,8 @@+import qualified Language.Haskell.HLint as HLint (hlint)+import System.Exit+++main :: IO ()+main = do+ result <- HLint.hlint [ "test/", "Text/" ]+ if null result then exitSuccess else exitFailure
test/Main.hs view
@@ -1,10 +1,12 @@ {-# LANGUAGE OverloadedLists #-} {-# LANGUAGE OverloadedStrings #-} -- {{{ Imports-import Arbitrary ()+import Text.OPML.Conduit.Parse+import Text.OPML.Conduit.Render+import Text.OPML.Lens +import Arbitrary () import Control.Monad.Trans.Resource- import Data.Conduit import Data.Conduit.Combinators as Conduit (sourceFile) import Data.Default@@ -12,22 +14,12 @@ import Data.Text.Encoding import Data.Tree import Data.Version--import Paths_opml_conduit--import qualified Language.Haskell.HLint as HLint (hlint)- import Lens.Simple-+import Paths_opml_conduit import Test.Tasty import Test.Tasty.HUnit import Test.Tasty.QuickCheck--import Text.OPML.Conduit.Parse-import Text.OPML.Conduit.Render-import Text.OPML.Lens import Text.XML.Stream.Parse as XML- import URI.ByteString -- }}} @@ -35,7 +27,6 @@ main = defaultMain $ testGroup "Tests" [ unitTests , properties- , hlint ] unitTests :: TestTree@@ -53,12 +44,6 @@ [ inverseHeadProperty -- , inverseProperty ]---hlint :: TestTree-hlint = testCase "HLint check" $ do- result <- HLint.hlint [ "test/", "Text/" ]- null result @?= True categoriesCase :: TestTree