An Aho-Corasick automaton.
Constructors
AcMachinemachineValues :: !Vector [v]For every state, the values associated with its needles. If the state is not a match state, the list is empty.
machineTransitions :: !PrimArray TransitionA packed vector of transitions. For every state, there is a slice of this vector that starts at the offset given by machineOffsets, and ends at the first wildcard transition.
machineOffsets :: !PrimArray OffsetFor every state, the index into machineTransitions where the transition list for that state starts.
machineRootAsciiTransitions :: !PrimArray TransitionA lookup table for transitions from the root state, an optimization to avoid having to walk all transitions, at the cost of using a bit of additional memory.
Instances4Functor, Generic, NFData, Rep
Functor AcMachineDefined in alfred-margaret-2.1.1.1 · Data.Text.AhoCorasick.AutomatonGeneric (AcMachine v)Defined in alfred-margaret-2.1.1.1 · Data.Text.AhoCorasick.AutomatonNFData v => NFData (AcMachine v)Defined in alfred-margaret-2.1.1.1 · Data.Text.AhoCorasick.Automatontype Rep (AcMachine v) = D1 ('MetaDataDefined in alfred-margaret-2.1.1.1 · Data.Text.AhoCorasick.Automaton"AcMachine"
"Data.Text.AhoCorasick.Automaton"
"alfred-margaret-2.1.1.1-ASFUiU1mFjDAljTyYzURM4"
'False) (C1 ('MetaCons"AcMachine"
'PrefixI 'True) ((S1 ('MetaSel ('Just"machineValues"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Vector [v])) :*: S1 ('MetaSel ('Just"machineTransitions"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (PrimArray Transition))) :*: (S1 ('MetaSel ('Just"machineOffsets"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (PrimArray Offset)) :*: S1 ('MetaSel ('Just"machineRootAsciiTransitions"
) 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (PrimArray Transition)))))