I implement the Ukkonen algorithm, which requires that all leaves of the tree contain a reference to the same integer, and I do this in Haskell to learn more about this language. However, it is difficult for me to write a data type that does this.
How can I put a link in a leaf type declaration?
reference haskell mutable state-monad suffix-tree
Craig
source share