>ՙ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~None 09:;<=AOT( async calls%dynamic serializable data for logging.Mget the continuation context: closure, continuation, state, child threads etc/,run the closure and the continuation context03warning: radiactive untyped stuff. handle with care1compose a list of continuations2run the closure (the x. in 'x >>= f') of the current bind operation.3run the continuation (the f, in 'x >>= f') of the current bind operation5run a chain of continuations. It is up to the programmer to assure by construction that each continuation type-check with the next, that the parameter type match the input of the first continuation. Normally this makes sense if it stop the current flow with 7 after the invocation7Ua sinonym of empty that can be used in a monadic expression. it stop the computation8iforces the execution of the second operand even if the first stop. Return the first result (experimental):forces the execution of the second operand if the first fails only if the first operand is executed normally, that is , it is not a reexecution consequence of an internal event on it. Return the first result<Bset the current closure and continuation for the current statement=reset the closure and continuation. remove inner binds than the previous computations may have stacked in the list of continuations. resetEventCont :: Maybe a -> EventF -> StateIO (TransIO b -> TransIO b)Bzset the maximun number of threads for a procedure. It is useful to limit the parallelization of transient code that uses U T and QCjdelete all the previous childs generated by the expressions and continue execution of the current thread.DFadd n threads to the limit of threads. If there is no limit, it set itE2assure that at least there are n threads availableFLThe threads generated in the process passed as parameter will not be killed.GzThe threads will be killed when the parent thread dies. That is the default. This can be invoked to revert the effect of FHkill all the child processesI8Get the state data for the desired type if there is any.JdgetData specialized for the Transient monad. if Nothing, the monadic computation does not continue.If there is no such data, J silently stop the computation. That may or may not be the desired behaviour. To make sure that this does not get unnoticed, use this construction:  getSData <|> error "no data"K-set session data for this type. retrieved with getData or getSData Note that this is data in a state monad, that means that the update only affect downstream in the monad execution. it is not a global state neither a per user or per thread state it is a monadic state like the one of a state monad.La shorter name for setDataOxgenerator of identifiers that are unique withing the current monadic sequence They are not unique in the whole program.Q variant of US that repeatedly executes the IO computation and kill the previously created childsnIt is useful in single threaded problems where each event discard the computations spawned by previous eventsS variant of UJ that execute the IO computation once, and kill the previous child threadsTQvariant that spawn free threads. Since there is no thread control, this is fasterUreturn empty to the current thread, in new thread, execute the IO action, this IO action modify an internal buffer. then, executes the closure where U@ is located In this new execution, since the buffer is filled, Uz return the content of this buffer. Then it launch the continuation after it with this new value returned by the closure.+If the maximum number of threads, set with B has been reached U< perform the work sequentially, in the current thread. So UB means that 'it can be parallelized if there are thread available'uif there is a limitation of threads, when a thread finish, the counter of threads available is increased so another U can make use of it.The behaviour of U depend on ; If , U( will excute again the IO action. with ,  and , U' will not repeat the IO action anymore.ZDkill all the child threads associated with the continuation context[deinvert an event handler. The first parameter is the event handler setter to be deinverted. Usually it is the primitive provided by a framework to set an event handlerthe second is the value to return to the event handler it configures the event handler by calling the first parameter, that set the event handler, with the current continuation^finstall a event receiver that wait for a string and trigger the continuation when this string arrives._validates an input entered in the keyboard in non blocking mode. non blocking means that the user can enter also anything else to activate other option unlike ^A, wich watch continuously, input only wait for one valid response` non blocking  with a validatorewait for the execution of h and return the resultfkeep the main thread running, initiate the asynchronous keyboard input and execute the transient computation. It also read a slash separated list of string that are interpreted by ^ and _( as if they were entered by the keyboardg same than fJbut do not initiate the asynchronous keyboard input. Useful for debuggingh{force the finalization of the main thread and thus, all the Transient block (and the application if there is no more code)j:alternative operator for maybe values. Used in infix modev  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuk   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijv,)*+('& !"#$%u-./012345ts6rq  p o789:;n<=>?ml@ABCDEFGHIJKLMNOPkQRSTUVWXYZ[\]^_`abcdefghij[    !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstu,081:1NoneT!&)*+78:BCEFGHIJKLNOQSTU[^_fg!)*+&fg7^_SQTU[KLIJNBEFGCH8:ONone0~creates an EVar.Evars are event vars. C trigger the execution of all the continuations associated to the 1 of this variable (the code that is after them).It is like the publish-subscribe pattern but without inversion of control, since a readEVar can be inserted at any place in the Transient flow.wEVars are created upstream and can be used to communicate two sub-threads of the monad. Following the Transient philosophy they do not block his own thread if used with alternative operators, unlike the IORefs and TVars. And unlike STM vars, that are composable, they wait for their respective events, while TVars execute the whole expression when any variable is modified.TThe execution continues after the writeEVar when all subscribers have been executed./Now the continuations are executed in parallel.see Yhttps://www.fpcomplete.com/user/agocorona/publish-subscribe-variables-transient-effects-v(delete al the subscriptions for an evar.rread the EVar. It only succeed when the EVar is being updated The continuation gets registered to be executed whenever the variable is updated. if readEVar is in any kind of loop, since each continuation is different, this will register again the continuation. The effect is that the continuation will be executed multiple times To avoid multiple registrations, use  unsubscribeQupdate the EVar and execute all readEVar blocks with "last in-first out" priority|}~|}~|}~|}~Nonefslurp a list of values and process them in parallel . To limit the number of processing threads, use BMgroup the output of a possible multithreaded process in groups of n elements.0group result for a time interval, measured with Falternative definition with more parallelism, as the composition of n S sentencesexecute a process and get at least the first n solutions (they could be more). if the process end without finding the number of solutions requested, it return the found ones if he find the number of solutions requested, it kill the non-free threads of the process and return It works monitoring the solutions found and the number of active threads. If the first parameter is 0, collect will return all the resultssearch also between two time intervals. If the first interval has passed and there is no result, it stops. After the second interval, it stop unconditionally and return the current results. It also stops as soon as there are enough results specified in the first parameter.None9;ATwrite the result of the computation in the log and return it. but if there is data in the internal log, it read the data from the log and do not execute the computation.!It accept nested step's. The effect is that if the outer step is executed completely the log of the inner steps are erased. If it is not the case, the inner steps are logged this reduce the log of large computations to the minimum. That is a feature not present in the package Workflow.  r <- logged $ do logged this :: TransIO () logged that :: TransIO () logged thatOther liftIO $ print rwhen - is executed, the log is just the value of r. but at the  thatOther$ execution the log is: [Exec,(), ()]None0TStream the input to a fileslurp input from a file a line at a time. It creates as much threads as possible. to allow single threaded processing, use it with `threads 0`is the general operation for processing a streamed input, with opening resources before processing and closing them when finish is called. The process statements suscribe to the  EVar.=When this variable is updated, the close procedure is called.When the processing return  or , the X variable is updated so all the subscribed code, that close the resources, is executed.]initialize the event variable for finalization. all the following computations will share itFsuscribe a computation to be called when the finish event is triggered3trigger the event, so this closes all the resourcesZderegister all the finalization actions. A initFinish is needed to register actions again input computationGopen computation that gives resources to be used during the computation*close computation that frees the resourcesprocess to be done None0AT2assures that backtracking will not go further back6the secod parameter will be executed when backtracking:register an action that will be executed when backtracking+restart the flow forward from this point onIexecute backtracking. It execute the registered actions in reverse order.QIf the backtracking flag is changed the flow proceed forward from that point on.8If the backtrack stack is finished or undoCut executed,  will stop.       !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~$transient-0.3-1KMFVWkBiJJDo5xlsRe0DHTransient.InternalsTransient.EVarsTransient.IndeterminismTransient.LoggedTransient.Stream.ResourceTransient.BacktrackTransient.BaseToReturn EventSetter StreamDataSMoreSLastSDoneSError RemoteStatus WasRemote WasParallelNoRemoteLogLogElemWaitExecVar LogEntriesCurrentPointerRecoverIDynamicIDynsStateIOEffectsEventFmeffectseventxcompfcompmfData mfSequencethreadIdfreeThparentchildren maxThread TransientIOEventIdSDataTransIO TransientrunTrans!> runTransientgetContrunContgetContinuationscompose runClosurerunContinuationsetContinuationrunContinuations restoreStackstop<**atEnd<***atEnd' setEventContresetEventConttailsafe baseEffects waitQSemB signalQSemBthreads oneThread addThreads' addThreads freeThreads hookedThreads killChildsgetDatagetSDatasetDatasetSDatadelSessionDatadelSDatagenId getPrevId waitEvents waitEvents'asyncspawnparallelloop forkFinally1free hangThread killChildrenreact getLineRefroptionoptioninputgetLine'reads1 inputLoop processLinerexitstaykeepkeep'exitexit' onNothing$fReadSomeException$fMonadIOTransIO$fMonadTransIO$fMonoidTransIO$fMonadPlusTransIO$fAlternativeTransIO$fReadIDynamic$fShowIDynamic$fApplicativeTransIO$fFunctorTransIO$fMonadStateEventFTransIO $fReadLogElem $fShowLogElem$fEqRemoteStatus$fShowRemoteStatus$fShowStreamData$fReadStreamDataEVarnewEVardelEVarreadEVar writeEVarchoosegroup groupByTimechoose'collectcollect'LoggablefromIDyntoIDynlogged $fLoggableasinkFile sourceFileprocess initFinishonFinishfinishunFinishundoCutonUndo registerUndoretryundobase System.IOgetLine time-1.6.0.1Data.Time.Clock.UTCDiff diffUTCTimetoDataprintFinish FinishReason checkFinalize Backtrack backtracking backStack