on master help sign in
rename to asyncly
commitf4237bfab36c815ab38070505f456dd426e9e589 authorHarendra Kumar <harendra.kumar@gmail.com> dateSat 1 Jul 2017, 02:02 (9 years ago) parent0e80adf
15 files changed+36−32
strands.cabal → asyncly.cabal+17−13 src/Strands.hs → src/Asyncly.hs+5−5 src/Strands/AsyncT.hs → src/Asyncly/AsyncT.hs+2−2 src/Strands/Backtrack.hs → src/Asyncly/Backtrack.hs src/Strands/Context.hs → src/Asyncly/Context.hs+1−1 src/Strands/State.hs → src/Asyncly/State.hs src/Strands/Threads.hs → src/Asyncly/Threads.hs+3−3 test/2-gather.hs+1−1 test/3-async.hs+1−1 test/3-sample.hs+1−1 test/Main.hs+1−1 test/alternative.hs+1−1 test/applicative.hs+1−1 test/gather.hs+1−1 test/logged.hs+1−1
strands.cabal → asyncly.cabalrenamed+17−13
@@ -1,11 +1,15 @@
1−name: strands
1+name: asyncly
22version: 0.5.5
3−synopsis: Compose multithreaded or event driven programs in a convenient and scalable manner.
4−description: An experimental package based on the transient package. Provides a
5− simple interface to integrate with other libraries and monad transformers.
6− See <http://github.com/agocorona/transient>
7−homepage: http://github.com/harendra-kumar/strands
8−bug-reports: https://github.com/harendra-kumar/strands/issues
3+synopsis: Compose asynchronous and multithreaded tasks
4+description: Asyncly allows you to compose asynchronous, concurrent
5+ and parallel tasks in a convenient manner without
6+ requiring the programmer to know the gory details
7+ of concurrent and multithreaded programming.
8+ This library is based on the wonderful work of
9+ Alberto G. Corona, see
10+ <http://github.com/agocorona/transient>
11+homepage: http://github.com/harendra-kumar/asyncly
12+bug-reports: https://github.com/harendra-kumar/asyncly/issues
913license: MIT
1014license-file: LICENSE
1115author: Alberto G. Corona, Harendra Kumar
@@ -19,10 +23,10 @@ cabal-version: >= 1.10
1923
2024library
2125 hs-source-dirs: src
22− exposed-modules: Strands
23− , Strands.Context
24− , Strands.AsyncT
25− , Strands.Threads
26+ exposed-modules: Asyncly
27+ , Asyncly.Context
28+ , Asyncly.AsyncT
29+ , Asyncly.Threads
2630
2731 default-language: Haskell2010
2832 ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates
@@ -51,9 +55,9 @@ test-suite test
5155 base >= 4.7 && < 5
5256 , hspec >= 2.0 && < 3
5357 , containers
54− , strands
58+ , asyncly
5559 default-language: Haskell2010
5660
5761source-repository head
5862 type: git
59− location: https://github.com/harendra-kumar/strands
63+ location: https://github.com/harendra-kumar/asyncly
src/Strands.hs → src/Asyncly.hsrenamed+5−5
@@ -1,5 +1,5 @@
11-- |
2−-- Module : Strands
2+-- Module : Asyncly
33-- Copyright : (c) 2017 Harendra Kumar
44--
55-- License : MIT-style
@@ -8,7 +8,7 @@
88-- Portability : GHC
99--
1010
11−module Strands
11+module Asyncly
1212 ( AsyncT
1313 , MonadAsync
1414 , wait
@@ -30,6 +30,6 @@ module Strands
3030 )
3131where
3232
33−import Strands.AsyncT (AsyncT)
34−import Strands.Context (Log, Loggable)
35−import Strands.Threads
33+import Asyncly.AsyncT (AsyncT)
34+import Asyncly.Context (Log, Loggable)
35+import Asyncly.Threads
src/Strands/AsyncT.hs → src/Asyncly/AsyncT.hsrenamed+2−2
@@ -9,7 +9,7 @@
99{-# LANGUAGE TypeFamilies #-}
1010{-# LANGUAGE UndecidableInstances #-}
1111
12−module Strands.AsyncT
12+module Asyncly.AsyncT
1313 ( AsyncT (..)
1414 , (<**)
1515 , (**>)
@@ -28,7 +28,7 @@ import Control.Monad.Trans.Control (ComposeSt, MonadBaseControl (..),
2828 defaultLiftBaseWith,
2929 defaultRestoreM)
3030
31−import Strands.Context
31+import Asyncly.Context
3232
3333--import Debug.Trace (traceM)
3434
src/Strands/Backtrack.hs → src/Asyncly/Backtrack.hsrenamed

The content is the same.

src/Strands/Context.hs → src/Asyncly/Context.hsrenamed+1−1
@@ -3,7 +3,7 @@
33{-# LANGUAGE FlexibleContexts #-}
44{-# LANGUAGE RecordWildCards #-}
55
6−module Strands.Context
6+module Asyncly.Context
77 ( ChildEvent(..)
88 , Loggable
99 , Log (..)
src/Strands/State.hs → src/Asyncly/State.hsrenamed

The content is the same.

src/Strands/Threads.hs → src/Asyncly/Threads.hsrenamed+3−3
@@ -2,7 +2,7 @@
22{-# LANGUAGE FlexibleContexts #-}
33{-# LANGUAGE ScopedTypeVariables #-}
44
5−module Strands.Threads
5+module Asyncly.Threads
66 ( MonadAsync
77 , wait
88 , wait_
@@ -42,8 +42,8 @@ import Data.IORef (IORef, atomicModifyIORef,
4242import Data.List (delete)
4343import Data.Maybe (isJust)
4444
45−import Strands.AsyncT
46−import Strands.Context
45+import Asyncly.AsyncT
46+import Asyncly.Context
4747
4848type MonadAsync m = (MonadIO m, MonadBaseControl IO m, MonadThrow m)
4949
test/2-gather.hs+1−1
@@ -1,4 +1,4 @@
1−import Strands
1+import Asyncly
22import Control.Monad.IO.Class (liftIO)
33
44main = do
test/3-async.hs+1−1
@@ -3,7 +3,7 @@ import Control.Monad.IO.Class (liftIO)
33import System.Random (randomIO)
44import System.IO
55
6−import Strands
6+import Asyncly
77
88main = do
99 hSetBuffering stdout LineBuffering
test/3-sample.hs+1−1
@@ -9,7 +9,7 @@ import Control.Monad.Trans.Control (MonadBaseControl)
99import Data.IORef
1010import Control.Monad.Catch (MonadThrow)
1111
12−import Strands
12+import Asyncly
1313
1414main = wait_ $ threads 3 $ do
1515 liftIO $ hSetBuffering stdout LineBuffering
test/Main.hs+1−1
@@ -4,7 +4,7 @@ import Test.Hspec
44
55import Control.Applicative ((<|>))
66--import Control.Monad.IO.Class (liftIO)
7−import Strands
7+import Asyncly
88import Data.List (sort)
99
1010default (Int)
test/alternative.hs+1−1
@@ -4,7 +4,7 @@ import System.Random (randomIO)
44import System.IO
55import Control.Applicative
66
7−import Strands
7+import Asyncly
88
99main = wait_ $ threads 3 $ do
1010 liftIO $ hSetBuffering stdout LineBuffering
test/applicative.hs+1−1
@@ -3,7 +3,7 @@
33import Control.Applicative ((<$>), (<*>), (<|>))
44import Control.Monad.IO.Class (liftIO)
55import System.IO
6−import Strands
6+import Asyncly
77
88main = do
99 hSetBuffering stdout LineBuffering
test/gather.hs+1−1
@@ -3,7 +3,7 @@ import Control.Monad.IO.Class (liftIO)
33import System.Random (randomIO)
44import System.IO
55
6−import Strands
6+import Asyncly
77
88--- Check space leaks
99
test/logged.hs+1−1
@@ -3,7 +3,7 @@
33import Control.Applicative ((<$>), (<*>), (<|>))
44import Control.Monad.IO.Class (liftIO)
55import System.IO
6−import Strands
6+import Asyncly
77
88main = do
99 hSetBuffering stdout LineBuffering