summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxenog <>2018-08-10 09:43:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2018-08-10 09:43:00 (GMT)
commit0e19849f867c5cc69b387075e9562d8aa78d425f (patch)
treeeb408875475d507dd90de09a28c5c4d9d1c95f7c
parent98f1509c83ed21237072b9afa14a7c9534579847 (diff)
version 0.1.0.10.1.0.1
-rw-r--r--README.md2
-rw-r--r--nqe.cabal119
-rw-r--r--test/Spec.hs4
3 files changed, 70 insertions, 55 deletions
diff --git a/README.md b/README.md
index 82401df..3a88157 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
# Not Quite Erlang
-Haskell framework for simple concurrent processes with mailboxes inspired by Erlang/OTP.
+Haskell framework for concurrency inspired by Erlang/OTP.
diff --git a/nqe.cabal b/nqe.cabal
index aa3532c..5322852 100644
--- a/nqe.cabal
+++ b/nqe.cabal
@@ -1,57 +1,72 @@
-name: nqe
-version: 0.1.0.0
-synopsis: Concurrency library in the style of Erlang/OTP
-description:
- Follow the example of Erlang developing a minimalistic actor library with a
- distinct Haskell flavour. It does not implement Erlang/OTP-style processes
- exactly, but it is merely inspired by their philosophy.
-homepage: https://github.com/xenog/nqe#readme
-license: PublicDomain
-license-file: UNLICENSE
-author: Jean-Pierre Rupp
-maintainer: xenog@protonmail.com
-category: Control
-build-type: Simple
-extra-source-files: README.md
-cabal-version: >=1.10
+-- This file has been generated from package.yaml by hpack version 0.20.0.
+--
+-- see: https://github.com/sol/hpack
+--
+-- hash: 8e3fef9a7a4c6b1d175f3c2667594ea27d1a60884fcc25429d83e0f5a27c0616
-library
- hs-source-dirs: src
- exposed-modules: Control.Concurrent.NQE
- other-modules: Control.Concurrent.NQE.Process
- Control.Concurrent.NQE.Network
- Control.Concurrent.NQE.Supervisor
- build-depends: base >= 4.7 && < 5
- , bytestring >= 0.10 && < 0.11
- , conduit >= 1.2 && < 1.3
- , conduit-extra >= 1.1 && < 1.3
- , containers >= 0.5 && < 0.6
- , async >= 2.1 && < 2.3
- , lifted-async >= 0.9 && < 0.10
- , lifted-base >= 0.2 && < 0.3
- , transformers-base >= 0.4 && < 0.5
- , monad-control >= 1.0 && < 1.1
- , stm >= 2.4 && < 3
- default-language: Haskell2010
+name: nqe
+version: 0.1.0.1
+synopsis: Concurrency library in the style of Erlang/OTP
+description: Minimalistic actor library inspired by Erlang/OTP with support for supervisor hierarchies and asynchronous messages, as well as abstractions for synchronous communication and easy management of TCP connections.
+category: Control
+homepage: https://github.com/xenog/nqe#readme
+bug-reports: https://github.com/xenog/nqe/issues
+author: Jean-Pierre Rupp
+maintainer: xenog@protonmail.com
+license: PublicDomain
+license-file: UNLICENSE
+build-type: Simple
+cabal-version: >= 1.10
-test-suite nqe-test
- type: exitcode-stdio-1.0
- hs-source-dirs: test
- main-is: Spec.hs
- build-depends: base
- , nqe
- , bytestring >= 0.10 && < 0.11
- , conduit >= 1.2 && < 1.3
- , conduit-extra >= 1.1 && < 1.3
- , exceptions >= 0.8 && < 0.9
- , async >= 2.1 && < 2.3
- , hspec >= 2.4 && < 3
- , stm >= 2.4 && < 3
- , stm-conduit >= 3.0 && < 3.1
- , text >= 1.2 && < 1.3
- ghc-options: -threaded -rtsopts -with-rtsopts=-N
- default-language: Haskell2010
+extra-source-files:
+ README.md
source-repository head
- type: git
+ type: git
location: https://github.com/xenog/nqe
+
+library
+ hs-source-dirs:
+ src
+ build-depends:
+ async
+ , base >=4.7 && <5
+ , bytestring
+ , conduit
+ , conduit-extra
+ , containers
+ , lifted-async
+ , lifted-base
+ , monad-control
+ , stm
+ , transformers-base
+ exposed-modules:
+ Control.Concurrent.NQE
+ other-modules:
+ Control.Concurrent.NQE.Network
+ Control.Concurrent.NQE.Process
+ Control.Concurrent.NQE.Supervisor
+ Paths_nqe
+ default-language: Haskell2010
+
+test-suite nqe-test
+ type: exitcode-stdio-1.0
+ main-is: Spec.hs
+ hs-source-dirs:
+ test
+ ghc-options: -threaded -rtsopts -with-rtsopts=-N
+ build-depends:
+ async
+ , base >=4.7 && <5
+ , bytestring
+ , conduit
+ , conduit-extra
+ , exceptions
+ , hspec
+ , nqe
+ , stm
+ , stm-conduit
+ , text
+ other-modules:
+ Paths_nqe
+ default-language: Haskell2010
diff --git a/test/Spec.hs b/test/Spec.hs
index 2bf3ea0..027dfd4 100644
--- a/test/Spec.hs
+++ b/test/Spec.hs
@@ -46,9 +46,9 @@ conduits = do
inChan <- newTBMChanIO 2048
outChan <- newTBMChanIO 2048
return ( sourceTBMChan inChan
- , sinkTBMChan outChan True
+ , sinkTBMChan outChan
, sourceTBMChan outChan
- , sinkTBMChan inChan True
+ , sinkTBMChan inChan
)
pongServer ::