[Haskell-cafe] Haskell and State Monad.
paul at cogito.org.uk
Wed Sep 12 14:20:51 EDT 2007
> In particular i need to find some project/program which
> extensively uses the State Monad.
Perhaps you could tell us why you think you need the State Monad? It
may be that there are easier ways of dealing with this.
For an assembler you need to build up a symbol table based on symbols
found during parsing. If you are using Parsec then the GenParser type
(if I recall correctly) has a state parameter for doing exactly this.
You will probably find this easier to work with than having separate
State and Parser monads.
More information about the Haskell-Cafe