Mutually recursive structures

2000-10-17 Thread Timothy Docker
Tom Pledger writes: > Timothy Docker writes: > > [...] How can I do this in Haskell? If I don't have mutable > > references, I figure that I must need to use laziness in some way, > > perhaps similar to how I would build an infinite structure. > > http://www.mail-archive.com/haskell@ha

Mutually recursive structures

2000-10-16 Thread Tom Pledger
Timothy Docker writes: > [...] How can I do this in Haskell? If I don't have mutable > references, I figure that I must need to use laziness in some way, > perhaps similar to how I would build an infinite structure. http://www.mail-archive.com/[email protected]/msg06321.html I have nothing

Mutually recursive structures

2000-10-16 Thread Timothy Docker
The following problem has been taxing me I have a list of pairs that I have parsed from a input file, which represent a hiirarchy, where the first element is the name of the object, and the second is the name of the parent if there is one: type ParseOutput = [(String,Maybe String)]