packages feed

Cabal revisions of simple-pipe-0.0.0.29

Hackage metadata revisions edit the .cabal file after upload; each diff below is one revision.

revision 1
-build-type:	Simple-cabal-version:	>= 1.8--name:		simple-pipe-version:	0.0.0.29-stability:	Experimental-author:		Yoshikuni Jujo <PAF01143@nifty.ne.jp>-maintainer:	Yoshikuni Jujo <PAF01143@nifty.ne.jp>-homepage:	https://github.com/YoshikuniJujo/simple-pipe/wiki--license:	BSD3-license-file:	LICENSE--category:	Data-synopsis:	simple pipeline library like conduit-description:-    .-    examples/upperFile.hs-    .-    * read file (sample.txt)-    .-    * take 3 lines-    .-    * to upper all lines-    .-    * write to stdout-    .-    extensions-    .-    .-    * PackageImports-    .-    > import Data.Pipe-    > import Data.Char-    > import System.IO-    > import "monads-tf" Control.Monad.Trans-    >-    > main :: IO ()-    > main = do-    > 	_ <- runPipe $ readFileP "sample.txt"-    >		=$= takeP 3-    >		=$= convert (map toUpper)-    >		=$= writeString-    > 	return ()-    >-    > readFileP :: FilePath -> Pipe () String IO ()-    > readFileP fp = bracket (openFile fp ReadMode) hClose hRead-    >-    > hRead :: Handle -> Pipe () String IO ()-    > hRead h = do-    > 	eof <- lift $ hIsEOF h-    > 	if eof then return () else do-    > 		l <- lift $ hGetLine h-    > 		yield l-    > 		hRead h-    >-    > writeString :: Pipe String () IO ()-    > writeString = do-    > 	ms <- await-    > 	case ms of-    > 		Just s -> lift (putStrLn s) >> writeString-    > 		_ -> return ()-    >-    > takeP :: Monad m => Int -> Pipe a a m ()-    > takeP 0 = return ()-    > takeP n = do-    >	mx <- await-    >	case mx of-    >		Just x -> yield x >> takeP (n - 1)-    >		_ -> return ()-    .--extra-source-files:-    examples/upperFile.hs--source-repository	head-    type:	git-    location:	git://github.com/YoshikuniJujo/simple-pipe.git--source-repository	this-    type:	git-    location:	git://github.com/YoshikuniJujo/simple-pipe.git-    tag:	simple-pipe-0.0.0.29--library-    hs-source-dirs:	src-    exposed-modules:-        Data.Pipe, Data.Pipe.Lazy,-        Data.Pipe.Flow, Data.Pipe.List,-        Data.Pipe.IO, Data.Pipe.ByteString, Data.Pipe.TChan-    other-modules:-        Data.Pipe.Core-    build-depends:-        base == 4.*, monad-control == 1.0.*, lifted-base == 0.2.*,-        monads-tf == 0.1.*, bytestring == 0.10.*, transformers-base == 0.4.*,-        stm == 2.4.*-    ghc-options:	-Wall-    extensions:		DoAndIfThenElse+build-type:	Simple
+cabal-version:	>= 1.8
+
+name:		simple-pipe
+version:	0.0.0.29
+x-revision: 1
+stability:	Experimental
+author:		Yoshikuni Jujo <PAF01143@nifty.ne.jp>
+maintainer:	Yoshikuni Jujo <PAF01143@nifty.ne.jp>
+homepage:	https://github.com/YoshikuniJujo/simple-pipe/wiki
+
+license:	BSD3
+license-file:	LICENSE
+
+category:	Data
+synopsis:	simple pipeline library like conduit
+description:
+    .
+    examples/upperFile.hs
+    .
+    * read file (sample.txt)
+    .
+    * take 3 lines
+    .
+    * to upper all lines
+    .
+    * write to stdout
+    .
+    extensions
+    .
+    .
+    * PackageImports
+    .
+    > import Data.Pipe
+    > import Data.Char
+    > import System.IO
+    > import "monads-tf" Control.Monad.Trans
+    >
+    > main :: IO ()
+    > main = do
+    > 	_ <- runPipe $ readFileP "sample.txt"
+    >		=$= takeP 3
+    >		=$= convert (map toUpper)
+    >		=$= writeString
+    > 	return ()
+    >
+    > readFileP :: FilePath -> Pipe () String IO ()
+    > readFileP fp = bracket (openFile fp ReadMode) hClose hRead
+    >
+    > hRead :: Handle -> Pipe () String IO ()
+    > hRead h = do
+    > 	eof <- lift $ hIsEOF h
+    > 	if eof then return () else do
+    > 		l <- lift $ hGetLine h
+    > 		yield l
+    > 		hRead h
+    >
+    > writeString :: Pipe String () IO ()
+    > writeString = do
+    > 	ms <- await
+    > 	case ms of
+    > 		Just s -> lift (putStrLn s) >> writeString
+    > 		_ -> return ()
+    >
+    > takeP :: Monad m => Int -> Pipe a a m ()
+    > takeP 0 = return ()
+    > takeP n = do
+    >	mx <- await
+    >	case mx of
+    >		Just x -> yield x >> takeP (n - 1)
+    >		_ -> return ()
+    .
+
+extra-source-files:
+    examples/upperFile.hs
+
+source-repository	head
+    type:	git
+    location:	git://github.com/YoshikuniJujo/simple-pipe.git
+
+source-repository	this
+    type:	git
+    location:	git://github.com/YoshikuniJujo/simple-pipe.git
+    tag:	simple-pipe-0.0.0.29
+
+library
+    hs-source-dirs:	src
+    exposed-modules:
+        Data.Pipe, Data.Pipe.Lazy,
+        Data.Pipe.Flow, Data.Pipe.List,
+        Data.Pipe.IO, Data.Pipe.ByteString, Data.Pipe.TChan
+    other-modules:
+        Data.Pipe.Core
+    build-depends:
+        base >= 4.6 && < 5, monad-control == 1.0.*, lifted-base == 0.2.*,
+        monads-tf == 0.1.*, bytestring == 0.10.*, transformers-base == 0.4.*,
+        stm == 2.4.*
+    ghc-options:	-Wall
+    extensions:		DoAndIfThenElse