mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-haskell/attoparsec-enumerator: switch to EAPI=7
Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
EAPI=7
|
||||
|
||||
# ebuild generated by hackport 0.4.5.9999
|
||||
# ebuild generated by hackport 0.6.6.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour"
|
||||
inherit haskell-cabal
|
||||
|
||||
@@ -5,28 +5,4 @@
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user