vghǽ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~Monad for ACID event handlers. <ACID computations that work with any state and event types.       A saver that bunches writes.   Just to avoid a dependency.  3Use a proxy to force the type of an update action. 1Forces the type of the proxy and update to match 1Use a proxy to force the type of a query action. ,Forces the type of proxy and query to match Currying version of . Currying version of . Specialized version of   Specialized version of   Specialized version of  . Lift an STM action into Ev. "Select a part of the environment. QRun a computation with local state. Changes to state will be visible to outside. !$Run a computation with local state. ",Execute a Query action in the Update monad.  !" !"#Get a random number. $&Get a random number inside the range. %AInfer updating functions for a record. Given a data declaration  of *data Foo = Foo {bar :: String, baz :: Int} then $(inferRecordUpdaters ''Foo)  will define functions a_bar :: String -> Foo -> Foo, *withBar :: Update String a -> Update Foo a, 2 etc. that can be used as convenience updaters. 3Create a list of selection functions for a record. 0Create a list of update functions for a record. Return field names Simple definition #$%#$% )GSubHandlers is used to build up the set of components corresponding to  the instance type. +*In order to be used as a part of Happstack's MACID state, a data type C needs to be an instance of Component. The minimal definition is H an initialValue and the type corresponding to the set of Dependencies. F Note that the SubHandlers condition will be automatically met if the  Dependencies is built from =< and ':+:' with other instances of  Component and Methods /State type -> all versions 0State type -> method map 3KClass for enumerating the set of defined methods by the type of the state. 5 Instances should not be defined directly, but using  mkMethods 5AMethod is the actual type that all Updates and Querys eventually  get lifted into via  mkMethods. :AType level Cons for enumerating type dependencies of a Component <Equivalent of []9 for type level lists. Used for Components that have no  dependencies >Displays the type of a Method B+An error is thrown when this is evaluated. &'()*+,-./0123456789:;<=>?@AB<=:;98576>34120/+,-.)*'(?&@AB&'(()**+,-.,-./01223445766789:;;<==>?@ABCGThis function will derive, for the provided type name and the provided L list of methods, an instance of Methods for the given type and necessary Q instance of UpdateEvent and QueryEvent to make the provided list of functions  into Methods. M This TH splice needs to be executed for any MACID state type in order to 9 have the necessary code for event handling generated.  Ex:  $(mkMethods ''Foo [' fooUpdate,fooQuery]) CCCFEnable queueing. GKA saver that operates on files. The parameter is the prefix for the files. H!A saver that discards all output I4Dispatches over the Saver type provided to return a   for the inferred  type. JIDispatches over the Saver type provided to return a WriterStream for the  inferred type.  DEFGHIJKL  DHGFEIJKL DHGFEEFGHIJKL ]Saver given by the user. _Types of each component used. `(Map listing all versions of a component b9Stores exclusive prefix lock (implemented in filesystem) e-Perform checkpoint at least every N seconds. g@Number of active nodes in the cluster (not counting this node). i2Commits per second. Only applies to cluster mode. OSchedule an update and wait for it to complete. When this function returns, you're + guaranteed the update will be persistent. ,Emit a state query and wait for the result. gMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~gMNOPQRSTU~}|z{xyvwurtsqplmnokjcdefghi[\]^_`abYZVXWgMNOPQRSSTUUVXWWXYZZ[\]^_`ab\]^_`abcdefghidefghijklmnomnopqrtsstuvwwxyyz{{|}~CConnects the Happstack process to the local running spread daemon. . The spread daemon must already be running. @This function modifies any event handlers in the given EventMap H to make them route the update information to the rest of the cluster 1Given a Saver and a Proxy, createTxControl will ; initialize a TxControl. This does not actually start the  state system. -Saves the state and closes the serialization 5Load state from disk and re-run any needed events to : fully restore the state. The returned function enables  event logging. 6Load a map from component types to serialized states. 3Creates a checkpoint using the provided TxControl. M This checkpoint may be used as a safe state with which to start the system, N e.g. one may delete all the serialized events that took place after the last A checkpoint and start the application fresh from the checkpoint. H Calling this function manually is the only way to create checkpoints. KRun the MACID system without multimaster support and with the given Saver. ERun the MACID system with multimaster support turned on if the first  argument is True.  Shuts down a transaction system PStarts the MACID system without multimaster support. Uses the default behavior 0 of saving the state into the _local directory. MStarts the MACID system with multimaster support. Uses the default behavior 0 of saving the state into the _local directory. DReturns the default Saver. It will save the application state into  the _local directory. Wait for a signal. B On unix, a signal is sigINT or sigTERM. On windows, the signal  is entering e. y    !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHOPQ[cdefghi7[cdefghiDHGFE !"QOP#$%   !"# $ % & ' ( ) * + , - . / 0 1 2 3 4567899:;<=>?@ABBCDEFGHHIIJKLMNOPQRSTUVWXYZ[\]^^__`abccddefghijkklmnopqrsstuvwxyz{||}}~~.     happstack-state-0.3.2Happstack.StateHappstack.State.SaverHappstack.State.ComponentSystemHappstack.State.ComponentTHHappstack.State.TransactionHappstack.State.ControlHappstack.State.TypesHappstack.State.Saver.Types Happstack.State.Saver.Impl.Queue!Happstack.State.Saver.Impl.MemoryHappstack.State.Saver.Impl.FileHappstack.State.Monad mtl-1.1.0.2Control.Monad.Reader.ClassControl.Monad.State.ClassHappstack.State.UtilHappstack.State.SpreadHappstack.State.CheckpointHappstack.State.TxControlUpdateQueryEvAnyEv EpochMilliTxId unsafeIOToEv WriterStream writerClose writerAddwriterAtomicReplace writerCut ReaderStream readerClose readerGetreaderGetUncut PrefixLockCatchEvcatchEv setUpdateType proxyUpdate setQueryType proxyQueryasUpdateasQueryaskStategetStateputStateliftSTMsel localStatelocalStateReaderrunQuery getRandom getRandomRinferRecordUpdatersCollect Collection SubHandlers subHandlers Component Dependencies initialValueonLoadComponentVersions ComponentTree MethodMapMethodsmethodsMethod QueryEvent UpdateEvent:+:End methodTypeaddItemcollectHandlerscollectHandlers'dup mkMethodsSaverMemoryQueue FileSaver NullSaver createReader createWriter obtainLock releaseLock ExceptionTlogMTgetTimegetEventClockTime getEventIdGetCheckpointStateSetCheckpointState OperationMode ClusterMode SingleMode EventLogEntry TxControlctlSaver ctlEventSaverctlAllComponentsctlComponentVersions ctlChildren ctlPrefixLockTxConfigtxcCheckpointSecondstxcOperationModetxcClusterSizetxcClusterPorttxcCommitFrequency EvLoaders EvLoaders'TxRuntxProcessQueuetxLastTxContext ProcessQueue EventQueueResErrorOk RunHandlerHRIHREventEHRunnerGetState SetNewState EventItem eventContext eventData EmitInternalEventMap EventHandler QueryHandler UpdateHandler TypeStringemitRefemitFunc emitEvent' emitEventsetNewEventMapeventStreamRefinitEventStream pushEventItemgetEventStreamcreateEventMap extraEvents allStateTypescomponentVersions componentIOcreateNewTxRunsetNewStateType getStateType setNewStateupdatequery quickQuery'setEvLoadersQueuerunObjectEventrunObjectEventFunc runColdEventrunColdEventFunclookupEventHandler eventTString handleEvent handleQuery handleUpdate checkDiff getEpochMilli newTxContextaddTxIdglobalRandomGen nullTxConfig runTxLoopcloseTxControlcreateCheckpoint runTxSystem runTxSystem'shutdownSystemstartSystemStatestartSystemStateMultimasterstdSaverwaitForTerminationUsingXmlunXmlShadowunShadowunEv TxContexttxIdtxRandtxTimetxStdGenEnv evRandoms evContextintegralRandomR unsafeSTMToEv unsafeIOToSTM queueWriter queueReaderStorenewMemoryStore memoryReader memoryWriterparseAll addToStoresetStoreatomicWriteFile fileReader fileWriterobtainPrefixLockreleasePrefixLockaskgetputselFunsupdFuns fieldNamessdefconnectToClusterchangeEventMappingcreateTxControl restoreStateloadCheckpointshappstack-data-0.3.3Happstack.Data.SerializeTHderiveSerializeForderiveSerializeHappstack.Data.SerializemkObject parseObjectdeserializeObjectcollectVersions deserialize serializesafeGetsafePut extensioncontain Contained Primitive VersionedModemodeVersionputCopygetCopy Serialize objectTypeObjectHappstack.Data.Proxy asProxyTypeunProxyproxydataType[a6ac] constr[a6ad]ProxyHappstack.Data.MigratemigrateMigrate