[Haskell-cafe] Library design question

Andre Nathan andre at digirati.com.br
Thu Sep 18 17:06:00 EDT 2008

On Thu, 2008-09-18 at 21:15 +0200, Henning Thielemann wrote:
> Think of the state monad as processing a graph in-place. Which graph is 
> addressed is declared when running the State monad using runState or 
> evalState.

Interesting. Is it good practice then to do something like

  type GraphM a b = State (Graph a b)

to hide from the user that I'm using the State monad underneath?


More information about the Haskell-Cafe mailing list