WFA.TModule type for a concrete weighted finite automaton parametric in a semiring element type s.
A WFA is a triple (iota, delta, lambda): iota is a row vector of initial weights, delta maps each character to a transition matrix, and lambda is a column vector of output weights. The semantics of word w = a₁…aₙ is iota · M(a₁) · … · M(aₙ) · lambda.