diff options
Diffstat (limited to 'dev-haskell/attoparsec-enumerator')
-rw-r--r-- | dev-haskell/attoparsec-enumerator/Manifest | 3 | ||||
-rw-r--r-- | dev-haskell/attoparsec-enumerator/attoparsec-enumerator-0.3.4.ebuild | 27 | ||||
-rw-r--r-- | dev-haskell/attoparsec-enumerator/metadata.xml | 32 |
3 files changed, 62 insertions, 0 deletions
diff --git a/dev-haskell/attoparsec-enumerator/Manifest b/dev-haskell/attoparsec-enumerator/Manifest new file mode 100644 index 000000000000..e2d9b627dcaf --- /dev/null +++ b/dev-haskell/attoparsec-enumerator/Manifest @@ -0,0 +1,3 @@ +DIST attoparsec-enumerator-0.3.4.tar.gz 2485 BLAKE2B e5d290228bec79723b4693e1c6e56e318483e2c60fd226022fc968903cbfd25ca6b8f09a2a4376c1671b3bd2dbf72e35f1a9f39e1d0ac8187e3e9b71f0c37744 SHA512 caf6bc858c9c0f41f3ec332cf4149bdc9233cad112579eb79a20dff1893994cee365c2863a47a72fef8d30aaab1d30b506b98c3a8b8429c461811f717c8fd31d +EBUILD attoparsec-enumerator-0.3.4.ebuild 776 BLAKE2B f9297a35a19ee0a0a03fc8f5e5d642e8995ce7697f0b66381e759268d32661ab2e737e2f0f19c8d6fec96dd1546810036b7f5405b1070d85b47db857a0301503 SHA512 5d41682a5416b9a5e275a7c4c5e07417b973057c84308ea88f587b2fd57000cff9579695eefaaa0602d3bf3d0ea6971809e6df9af77e5e25596aebd7a9893e7f +MISC metadata.xml 1034 BLAKE2B a2196ee3dccd3617b51604662ab3ecee40c9b882337f0ce1c839ee26633354705ac1121b48d59b76986cd9f3fcf3f82a715f22ff1125d2af253bd37260122808 SHA512 4d2750da94e3b02f493fa2b8ea288c429b5795367ff77b8010e0cdcaafd7974a5425e8041301038cc8fb142b791a5fcfd95e717adeff2f343b84334b2d4c8a22 diff --git a/dev-haskell/attoparsec-enumerator/attoparsec-enumerator-0.3.4.ebuild b/dev-haskell/attoparsec-enumerator/attoparsec-enumerator-0.3.4.ebuild new file mode 100644 index 000000000000..ba1ee261d228 --- /dev/null +++ b/dev-haskell/attoparsec-enumerator/attoparsec-enumerator-0.3.4.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +# ebuild generated by hackport 0.4.5.9999 + +CABAL_FEATURES="lib profile haddock hoogle hscolour" +inherit haskell-cabal + +DESCRIPTION="Pass input from an enumerator to an Attoparsec parser" +HOMEPAGE="https://john-millikin.com/software/attoparsec-enumerator/" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=dev-haskell/attoparsec-0.10:=[profile?] <dev-haskell/attoparsec-0.14:=[profile?] + >=dev-haskell/enumerator-0.4:=[profile?] <dev-haskell/enumerator-0.5:=[profile?] + dev-haskell/text:=[profile?] + >=dev-lang/ghc-7.4.1:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.6 +" diff --git a/dev-haskell/attoparsec-enumerator/metadata.xml b/dev-haskell/attoparsec-enumerator/metadata.xml new file mode 100644 index 000000000000..4f48a5c05d4f --- /dev/null +++ b/dev-haskell/attoparsec-enumerator/metadata.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>haskell@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> + <longdescription> + This library allows an Attoparsec parser to receive input incrementally + from an enumerator. This could be used for parsing large files, or + implementing binary network protocols. + + > (-# LANGUAGE OverloadedStrings #-) + > + > import Control.Applicative + > import Data.Attoparsec + > import Data.Attoparsec.Enumerator + > import Data.Enumerator + > import Data.Enumerator.Binary (enumHandle) + > import Data.Enumerator.List + > import System.IO + > + > parser = string "foo" <|> string "bar" + > + > main = do + > xy <- run_ (enumHandle 1 stdin $$ do + > x <- iterParser parser + > y <- iterParser parser + > return (x, y)) + > print xy + </longdescription> +</pkgmetadata> |