classy-prelude-conduit-0.5.3/0000755000000000000000000000000012114614502014300 5ustar0000000000000000classy-prelude-conduit-0.5.3/Setup.hs0000644000000000000000000000005612114614502015735 0ustar0000000000000000import Distribution.Simple main = defaultMain classy-prelude-conduit-0.5.3/LICENSE0000644000000000000000000000207512114614502015311 0ustar0000000000000000Copyright (c) 2012 Michael Snoyman, http://www.yesodweb.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. classy-prelude-conduit-0.5.3/classy-prelude-conduit.cabal0000644000000000000000000000265212114614502021670 0ustar0000000000000000name: classy-prelude-conduit version: 0.5.3 synopsis: conduit instances for classy-prelude description: conduit instances for classy-prelude homepage: https://github.com/snoyberg/classy-prelude license: MIT license-file: LICENSE author: Michael Snoyman maintainer: michael@snoyman.com category: Control, Prelude build-type: Simple cabal-version: >=1.8 library exposed-modules: ClassyPrelude.Conduit build-depends: base >= 4 && < 5 , conduit >= 0.5.4.1 && < 1.1 , xml-conduit >= 1.0 && < 1.2 , classy-prelude >= 0.5.3 && < 0.6 , transformers , monad-control , resourcet , void , bytestring ghc-options: -Wall -fno-warn-orphans test-suite spec type: exitcode-stdio-1.0 main-is: Spec.hs hs-source-dirs: test build-depends: base , hspec , classy-prelude-conduit , bytestring , transformers , QuickCheck , conduit source-repository head type: git location: git://github.com/snoyberg/classy-prelude.git classy-prelude-conduit-0.5.3/test/0000755000000000000000000000000012114614502015257 5ustar0000000000000000classy-prelude-conduit-0.5.3/test/Spec.hs0000644000000000000000000000005412114614502016504 0ustar0000000000000000{-# OPTIONS_GHC -F -pgmF hspec-discover #-} classy-prelude-conduit-0.5.3/ClassyPrelude/0000755000000000000000000000000012114614502017057 5ustar0000000000000000classy-prelude-conduit-0.5.3/ClassyPrelude/Conduit.hs0000644000000000000000000000137312114614502021024 0ustar0000000000000000{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FunctionalDependencies #-} module ClassyPrelude.Conduit ( -- * Re-export module ClassyPrelude , module Data.Conduit , module Data.Conduit.List -- * XML , X.Document (..) , X.Name (..) , X.Prologue (..) , X.Node (..) , X.Element (..) ) where import ClassyPrelude import ClassyPrelude.Classes import Data.Conduit import Data.Conduit.List (consume, sinkNull) import qualified Data.Conduit.Binary as CB import qualified Text.XML as X instance CanReadFile X.Document where readFile = liftIO . X.readFile X.def instance CanWriteFile X.Document where writeFile fp = liftIO . X.writeFile X.def fp