Skip to content

Commit

Permalink
Update from Hackage at 2018-11-05T09:15:41Z
Browse files Browse the repository at this point in the history
  • Loading branch information
all-cabal-tool committed Nov 5, 2018
1 parent 7f43e0a commit 01afc16
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
106 changes: 106 additions & 0 deletions slave-thread/1.0.2.3/slave-thread.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name:
slave-thread
version:
1.0.2.3
synopsis:
A fundamental solution to ghost threads and silent exceptions
description:
Vanilla thread management in Haskell is low level and
it does not approach the problems related to thread deaths.
When it's used naively the following typical problems arise:
.
* When a forked thread dies due to an uncaught exception,
the exception does not get raised in the main thread,
which is why the program continues to run as if nothing happened,
i.e., with the presumption that the already dead thread is running normally.
Naturally this may very well bring your program to a chaotic state.
.
* Another issue is that one thread dying does not
affect any of the threads forked from it.
That's why your program may be accumulating ghost threads.
.
* Ever dealt with your program ignoring the \<Ctrl-C\> strikes?
.
This library solves all the issues above with a concept of a slave thread.
A slave thread has the following properties:
.
1. When it dies for whatever reason (exception or finishing normally)
it kills all the slave threads that were forked from it.
This protects you from ghost threads.
.
2. It waits for all slaves to die and execute their finalizers
before executing its own finalizer and getting released itself.
This gives you hierarchical releasing of resources.
.
3. When a slave thread dies with an uncaught exception
it reraises it in the master thread.
This protects you from silent exceptions
and lets you be sure of getting informed
if your program gets brought to an erroneous state.
category:
Concurrency, Concurrent, Error Handling, Exceptions, Failure
homepage:
https://github.com/nikita-volkov/slave-thread
bug-reports:
https://github.com/nikita-volkov/slave-thread/issues
author:
Nikita Volkov <nikita.y.volkov@mail.ru>
maintainer:
Nikita Volkov <nikita.y.volkov@mail.ru>
copyright:
(c) 2014, Nikita Volkov
license:
MIT
license-file:
LICENSE
build-type:
Simple
cabal-version:
>=1.10

source-repository head
type:
git
location:
git://github.com/nikita-volkov/slave-thread.git

library
hs-source-dirs:
library
default-extensions:
Arrows, BangPatterns, ConstraintKinds, DataKinds, DefaultSignatures, DeriveDataTypeable, DeriveFoldable, DeriveFunctor, DeriveGeneric, DeriveTraversable, EmptyDataDecls, FlexibleContexts, FlexibleInstances, FunctionalDependencies, GADTs, GeneralizedNewtypeDeriving, LambdaCase, LiberalTypeSynonyms, MagicHash, MultiParamTypeClasses, MultiWayIf, NoImplicitPrelude, NoMonomorphismRestriction, OverloadedStrings, PatternGuards, PatternSynonyms, ParallelListComp, QuasiQuotes, RankNTypes, RecordWildCards, ScopedTypeVariables, StandaloneDeriving, TemplateHaskell, TupleSections, TypeFamilies, TypeOperators, UnboxedTuples
default-language:
Haskell2010
exposed-modules:
SlaveThread
build-depends:
base >=4.9 && <5,
deferred-folds >=0.9 && <0.10,
foldl >=1 && <2,
mmorph >=1.0.4 && <2,
partial-handler >=1 && <2,
stm-containers >=1.1 && <1.2,
transformers >=0.5 && <0.6

test-suite test
type:
exitcode-stdio-1.0
hs-source-dirs:
test
default-extensions:
Arrows, BangPatterns, ConstraintKinds, DataKinds, DefaultSignatures, DeriveDataTypeable, DeriveFoldable, DeriveFunctor, DeriveGeneric, DeriveTraversable, EmptyDataDecls, FlexibleContexts, FlexibleInstances, FunctionalDependencies, GADTs, GeneralizedNewtypeDeriving, LambdaCase, LiberalTypeSynonyms, MagicHash, MultiParamTypeClasses, MultiWayIf, NoImplicitPrelude, NoMonomorphismRestriction, OverloadedStrings, PatternGuards, PatternSynonyms, ParallelListComp, QuasiQuotes, RankNTypes, RecordWildCards, ScopedTypeVariables, StandaloneDeriving, TemplateHaskell, TupleSections, TypeFamilies, TypeOperators, UnboxedTuples
default-language:
Haskell2010
ghc-options:
-threaded
"-with-rtsopts=-N"
-funbox-strict-fields
main-is:
Main.hs
build-depends:
HTF ==0.13.*,
QuickCheck >=2.6 && <3,
quickcheck-instances ==0.3.*,
rerebase >=1 && <2,
SafeSemaphore ==0.10.*,
slave-thread
1 change: 1 addition & 0 deletions slave-thread/1.0.2.3/slave-thread.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"package-hashes":{"MD5":"142f0d7dd8715972a83c7942eeac8a53","Skein512_512":"fd786f6036691937a992f6453b00ba6c07fcdd9e5ec7e59a81311a5bdba7346963aabbaa11bc4c6c19358db8b8ed91d72655d1d2e5a191249f2d9633b6a460a5","SHA1":"cdeba8e882c417a82a7a3e8e5abb79a92e7c182a","SHA512":"a5560d7fb48fa54430e52cc6187e0f453ecf9ce8106b6b1e065ee3924c946b03bb139044e326d6fa0b8472db1719befa24097684d2b72fa289188783b34d9722","SHA256":"923e0b1bac97f4726f18376034c8a26fc3eaa2adda8bd5fe56b5a2b168c03f8c"},"package-locations":["https://hackage.haskell.org/package/slave-thread-1.0.2.3/slave-thread-1.0.2.3.tar.gz","https://s3.amazonaws.com/hackage.fpcomplete.com/package/slave-thread-1.0.2.3.tar.gz"],"package-size":4537}

0 comments on commit 01afc16

Please sign in to comment.