distributed-process-supervisor 0.1.2 → 0.1.3.1
raw patch · 3 files changed
+27/−14 lines, 3 filesdep ~deepseqdep ~timenew-uploaderPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: deepseq, time
API changes (from Hackage documentation)
- Control.Distributed.Process.Supervisor: _activeSupervisors :: SupervisorStats -> Int
- Control.Distributed.Process.Supervisor: _activeWorkers :: SupervisorStats -> Int
- Control.Distributed.Process.Supervisor: _children :: SupervisorStats -> Int
- Control.Distributed.Process.Supervisor: _running :: SupervisorStats -> Int
- Control.Distributed.Process.Supervisor: _supervisors :: SupervisorStats -> Int
- Control.Distributed.Process.Supervisor: _workers :: SupervisorStats -> Int
- Control.Distributed.Process.Supervisor: childKey :: ChildSpec -> !ChildKey
- Control.Distributed.Process.Supervisor: childRegName :: ChildSpec -> !(Maybe RegisteredName)
- Control.Distributed.Process.Supervisor: childRestart :: ChildSpec -> !RestartPolicy
- Control.Distributed.Process.Supervisor: childStart :: ChildSpec -> !ChildStart
- Control.Distributed.Process.Supervisor: childStop :: ChildSpec -> !ChildTerminationPolicy
- Control.Distributed.Process.Supervisor: childType :: ChildSpec -> !ChildType
- Control.Distributed.Process.Supervisor: instance Constructor C1_0AddChildReq
- Control.Distributed.Process.Supervisor: instance Constructor C1_0DeleteChild
- Control.Distributed.Process.Supervisor: instance Constructor C1_0FindReq
- Control.Distributed.Process.Supervisor: instance Constructor C1_0IgnoreChildReq
- Control.Distributed.Process.Supervisor: instance Constructor C1_0ListReq
- Control.Distributed.Process.Supervisor: instance Constructor C1_0RestartChildReq
- Control.Distributed.Process.Supervisor: instance Constructor C1_0StartChildReq
- Control.Distributed.Process.Supervisor: instance Constructor C1_0StatsReq
- Control.Distributed.Process.Supervisor: instance Constructor C1_0TerminateChildReq
- Control.Distributed.Process.Supervisor: instance Datatype D1AddChildReq
- Control.Distributed.Process.Supervisor: instance Datatype D1DeleteChild
- Control.Distributed.Process.Supervisor: instance Datatype D1FindReq
- Control.Distributed.Process.Supervisor: instance Datatype D1IgnoreChildReq
- Control.Distributed.Process.Supervisor: instance Datatype D1ListReq
- Control.Distributed.Process.Supervisor: instance Datatype D1RestartChildReq
- Control.Distributed.Process.Supervisor: instance Datatype D1StartChildReq
- Control.Distributed.Process.Supervisor: instance Datatype D1StatsReq
- Control.Distributed.Process.Supervisor: instance Datatype D1TerminateChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Binary AddChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Binary DeleteChild
- Control.Distributed.Process.Supervisor: instance [overlap ok] Binary FindReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Binary IgnoreChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Binary ListReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Binary RestartChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Binary StartChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Binary StatsReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Binary TerminateChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Eq RestartChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Eq TerminateChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Generic AddChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Generic DeleteChild
- Control.Distributed.Process.Supervisor: instance [overlap ok] Generic FindReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Generic IgnoreChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Generic ListReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Generic RestartChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Generic StartChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Generic StatsReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Generic TerminateChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Logger LogSink
- Control.Distributed.Process.Supervisor: instance [overlap ok] NFData AddChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] NFData DeleteChild
- Control.Distributed.Process.Supervisor: instance [overlap ok] NFData FindReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] NFData IgnoreChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] NFData ListReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] NFData RestartChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] NFData StartChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] NFData StatsReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] NFData TerminateChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Resolvable a => ToChildStart (SupervisorPid -> Process a)
- Control.Distributed.Process.Supervisor: instance [overlap ok] Show AddChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Show RestartChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Show TerminateChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] ToChildStart (Closure (Process ()))
- Control.Distributed.Process.Supervisor: instance [overlap ok] ToChildStart (Closure (SupervisorPid -> Process (ChildPid, Message)))
- Control.Distributed.Process.Supervisor: instance [overlap ok] ToChildStart (Process ())
- Control.Distributed.Process.Supervisor: instance [overlap ok] Typeable AddChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Typeable DeleteChild
- Control.Distributed.Process.Supervisor: instance [overlap ok] Typeable FindReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Typeable IgnoreChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Typeable ListReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Typeable RestartChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Typeable StartChildReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Typeable StatsReq
- Control.Distributed.Process.Supervisor: instance [overlap ok] Typeable TerminateChildReq
- Control.Distributed.Process.Supervisor: intensity :: RestartStrategy -> !RestartLimit
- Control.Distributed.Process.Supervisor: maxR :: RestartLimit -> !MaxRestarts
- Control.Distributed.Process.Supervisor: maxT :: RestartLimit -> !TimeInterval
- Control.Distributed.Process.Supervisor: mode :: RestartStrategy -> !RestartMode
- Control.Distributed.Process.Supervisor: order :: RestartMode -> !RestartOrder
- Control.Distributed.Process.Supervisor: totalRestarts :: SupervisorStats -> Int
+ Control.Distributed.Process.Supervisor: [_activeSupervisors] :: SupervisorStats -> Int
+ Control.Distributed.Process.Supervisor: [_activeWorkers] :: SupervisorStats -> Int
+ Control.Distributed.Process.Supervisor: [_children] :: SupervisorStats -> Int
+ Control.Distributed.Process.Supervisor: [_running] :: SupervisorStats -> Int
+ Control.Distributed.Process.Supervisor: [_supervisors] :: SupervisorStats -> Int
+ Control.Distributed.Process.Supervisor: [_workers] :: SupervisorStats -> Int
+ Control.Distributed.Process.Supervisor: [childKey] :: ChildSpec -> !ChildKey
+ Control.Distributed.Process.Supervisor: [childRegName] :: ChildSpec -> !(Maybe RegisteredName)
+ Control.Distributed.Process.Supervisor: [childRestart] :: ChildSpec -> !RestartPolicy
+ Control.Distributed.Process.Supervisor: [childStart] :: ChildSpec -> !ChildStart
+ Control.Distributed.Process.Supervisor: [childStop] :: ChildSpec -> !ChildTerminationPolicy
+ Control.Distributed.Process.Supervisor: [childType] :: ChildSpec -> !ChildType
+ Control.Distributed.Process.Supervisor: [intensity] :: RestartStrategy -> !RestartLimit
+ Control.Distributed.Process.Supervisor: [maxR] :: RestartLimit -> !MaxRestarts
+ Control.Distributed.Process.Supervisor: [maxT] :: RestartLimit -> !TimeInterval
+ Control.Distributed.Process.Supervisor: [mode] :: RestartStrategy -> !RestartMode
+ Control.Distributed.Process.Supervisor: [order] :: RestartMode -> !RestartOrder
+ Control.Distributed.Process.Supervisor: [totalRestarts] :: SupervisorStats -> Int
+ Control.Distributed.Process.Supervisor: instance Control.DeepSeq.NFData Control.Distributed.Process.Supervisor.AddChildReq
+ Control.Distributed.Process.Supervisor: instance Control.DeepSeq.NFData Control.Distributed.Process.Supervisor.DeleteChild
+ Control.Distributed.Process.Supervisor: instance Control.DeepSeq.NFData Control.Distributed.Process.Supervisor.FindReq
+ Control.Distributed.Process.Supervisor: instance Control.DeepSeq.NFData Control.Distributed.Process.Supervisor.IgnoreChildReq
+ Control.Distributed.Process.Supervisor: instance Control.DeepSeq.NFData Control.Distributed.Process.Supervisor.ListReq
+ Control.Distributed.Process.Supervisor: instance Control.DeepSeq.NFData Control.Distributed.Process.Supervisor.RestartChildReq
+ Control.Distributed.Process.Supervisor: instance Control.DeepSeq.NFData Control.Distributed.Process.Supervisor.StartChildReq
+ Control.Distributed.Process.Supervisor: instance Control.DeepSeq.NFData Control.Distributed.Process.Supervisor.StatsReq
+ Control.Distributed.Process.Supervisor: instance Control.DeepSeq.NFData Control.Distributed.Process.Supervisor.TerminateChildReq
+ Control.Distributed.Process.Supervisor: instance Control.Distributed.Process.Extras.Internal.Types.Resolvable a => Control.Distributed.Process.Supervisor.ToChildStart (Control.Distributed.Process.Supervisor.Types.SupervisorPid -> Control.Distributed.Process.Internal.Types.Process a)
+ Control.Distributed.Process.Supervisor: instance Control.Distributed.Process.Extras.SystemLog.Logger Control.Distributed.Process.Supervisor.LogSink
+ Control.Distributed.Process.Supervisor: instance Control.Distributed.Process.Supervisor.ToChildStart (Control.Distributed.Process.Internal.Types.Process ())
+ Control.Distributed.Process.Supervisor: instance Control.Distributed.Process.Supervisor.ToChildStart (Control.Distributed.Static.Closure (Control.Distributed.Process.Internal.Types.Process ()))
+ Control.Distributed.Process.Supervisor: instance Control.Distributed.Process.Supervisor.ToChildStart (Control.Distributed.Static.Closure (Control.Distributed.Process.Supervisor.Types.SupervisorPid -> Control.Distributed.Process.Internal.Types.Process (Control.Distributed.Process.Supervisor.Types.ChildPid, Control.Distributed.Process.Internal.Types.Message)))
+ Control.Distributed.Process.Supervisor: instance Data.Binary.Class.Binary Control.Distributed.Process.Supervisor.AddChildReq
+ Control.Distributed.Process.Supervisor: instance Data.Binary.Class.Binary Control.Distributed.Process.Supervisor.DeleteChild
+ Control.Distributed.Process.Supervisor: instance Data.Binary.Class.Binary Control.Distributed.Process.Supervisor.FindReq
+ Control.Distributed.Process.Supervisor: instance Data.Binary.Class.Binary Control.Distributed.Process.Supervisor.IgnoreChildReq
+ Control.Distributed.Process.Supervisor: instance Data.Binary.Class.Binary Control.Distributed.Process.Supervisor.ListReq
+ Control.Distributed.Process.Supervisor: instance Data.Binary.Class.Binary Control.Distributed.Process.Supervisor.RestartChildReq
+ Control.Distributed.Process.Supervisor: instance Data.Binary.Class.Binary Control.Distributed.Process.Supervisor.StartChildReq
+ Control.Distributed.Process.Supervisor: instance Data.Binary.Class.Binary Control.Distributed.Process.Supervisor.StatsReq
+ Control.Distributed.Process.Supervisor: instance Data.Binary.Class.Binary Control.Distributed.Process.Supervisor.TerminateChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Classes.Eq Control.Distributed.Process.Supervisor.RestartChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Classes.Eq Control.Distributed.Process.Supervisor.TerminateChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Constructor Control.Distributed.Process.Supervisor.C1_0AddChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Constructor Control.Distributed.Process.Supervisor.C1_0DeleteChild
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Constructor Control.Distributed.Process.Supervisor.C1_0FindReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Constructor Control.Distributed.Process.Supervisor.C1_0IgnoreChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Constructor Control.Distributed.Process.Supervisor.C1_0ListReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Constructor Control.Distributed.Process.Supervisor.C1_0RestartChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Constructor Control.Distributed.Process.Supervisor.C1_0StartChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Constructor Control.Distributed.Process.Supervisor.C1_0StatsReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Constructor Control.Distributed.Process.Supervisor.C1_0TerminateChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Datatype Control.Distributed.Process.Supervisor.D1AddChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Datatype Control.Distributed.Process.Supervisor.D1DeleteChild
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Datatype Control.Distributed.Process.Supervisor.D1FindReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Datatype Control.Distributed.Process.Supervisor.D1IgnoreChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Datatype Control.Distributed.Process.Supervisor.D1ListReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Datatype Control.Distributed.Process.Supervisor.D1RestartChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Datatype Control.Distributed.Process.Supervisor.D1StartChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Datatype Control.Distributed.Process.Supervisor.D1StatsReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Datatype Control.Distributed.Process.Supervisor.D1TerminateChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Generic Control.Distributed.Process.Supervisor.AddChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Generic Control.Distributed.Process.Supervisor.DeleteChild
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Generic Control.Distributed.Process.Supervisor.FindReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Generic Control.Distributed.Process.Supervisor.IgnoreChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Generic Control.Distributed.Process.Supervisor.ListReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Generic Control.Distributed.Process.Supervisor.RestartChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Generic Control.Distributed.Process.Supervisor.StartChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Generic Control.Distributed.Process.Supervisor.StatsReq
+ Control.Distributed.Process.Supervisor: instance GHC.Generics.Generic Control.Distributed.Process.Supervisor.TerminateChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Show.Show Control.Distributed.Process.Supervisor.AddChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Show.Show Control.Distributed.Process.Supervisor.RestartChildReq
+ Control.Distributed.Process.Supervisor: instance GHC.Show.Show Control.Distributed.Process.Supervisor.TerminateChildReq
Files
- ChangeLog +13/−0
- distributed-process-supervisor.cabal +13/−13
- tests/TestUtils.hs +1/−1
+ ChangeLog view
@@ -0,0 +1,13 @@+2015-06-15 Facundo Domínguez <facundo.dominguez@tweag.io> 0.1.3++* Add compatibility with ghc-7.10.+* Fix dependency bounds.++# HEAD++* Added initial GenServer module+* Added Timer Module+* Moved time functions into Time.hs+* Added Async API+* Added GenProcess API (subsumes lower level GenServer API)+
distributed-process-supervisor.cabal view
@@ -1,5 +1,5 @@ name: distributed-process-supervisor-version: 0.1.2+version: 0.1.3.1 cabal-version: >=1.8 build-type: Simple license: BSD3@@ -7,22 +7,23 @@ stability: experimental Copyright: Tim Watson 2012 - 2013 Author: Tim Watson-Maintainer: watson.timothy@gmail.com+Maintainer: Facundo Domínguez <facundo.dominguez@tweag.io> Stability: experimental Homepage: http://github.com/haskell-distributed/distributed-process-supervisor Bug-Reports: http://github.com/haskell-distributed/distributed-process-supervisor/issues synopsis: Supervisors for The Cloud Haskell Application Platform description: A part of the Cloud Haskell framework - This package implements a process which supervises a set of other processes, referred to as its children.- These child processes can be either workers (i.e., processes that do something useful in your application)- or other supervisors. In this way, supervisors may be used to build a hierarchical process structure- called a supervision tree, which provides a convenient structure for building fault tolerant software.+ This package implements a process which supervises a set of other processes, referred to as its children.+ These child processes can be either workers (i.e., processes that do something useful in your application)+ or other supervisors. In this way, supervisors may be used to build a hierarchical process structure+ called a supervision tree, which provides a convenient structure for building fault tolerant software. - For detailed information see "Control.Distributed.Process.Supervisor"+ For detailed information see "Control.Distributed.Process.Supervisor" category: Control tested-with: GHC == 7.4.2 GHC == 7.6.2 data-dir: ""+extra-source-files: ChangeLog source-repository head type: git@@ -36,16 +37,16 @@ distributed-process-extras >= 0.2.0 && < 0.3, distributed-process-client-server >= 0.1.2 && < 0.2, binary >= 0.6.3.0 && < 0.8,- deepseq >= 1.3.0.1 && < 1.4,+ deepseq >= 1.3.0.1 && < 1.5, mtl, containers >= 0.4 && < 0.6, hashable >= 1.2.0.5 && < 1.3, unordered-containers >= 0.2.3.0 && < 0.3, fingertree < 0.2, stm >= 2.4 && < 2.5,- time > 1.4 && < 1.5,+ time > 1.4 && < 1.6, transformers- if impl(ghc <= 7.5) + if impl(ghc <= 7.5) Build-Depends: template-haskell == 2.7.0.0, derive == 2.5.5, uniplate == 1.6.12,@@ -78,11 +79,11 @@ mtl, network-transport-tcp >= 0.4 && < 0.5, binary >= 0.6.3.0 && < 0.8,- deepseq >= 1.3.0.1 && < 1.4,+ deepseq >= 1.3.0.1 && < 1.5, network >= 2.3 && < 2.7, HUnit >= 1.2 && < 2, stm >= 2.3 && < 2.5,- time > 1.4 && < 1.5,+ time > 1.4 && < 1.6, test-framework >= 0.6 && < 0.9, test-framework-hunit, transformers,@@ -94,4 +95,3 @@ extensions: CPP main-is: TestSupervisor.hs other-modules: TestUtils-
tests/TestUtils.hs view
@@ -168,7 +168,7 @@ testMain :: (NT.Transport -> IO [Test]) -> IO () testMain builder = do Right (transport, _) <- createTransportExposeInternals- "127.0.0.1" "10501" defaultTCPParameters+ "127.0.0.1" "0" defaultTCPParameters testData <- builder transport defaultMain testData