[Haskell-cafe] Fair diagonals
Sjoerd Visscher
sjoerd at w3future.com
Wed Nov 4 09:37:20 EST 2009
On Nov 4, 2009, at 3:21 PM, Twan van Laarhoven wrote:
>
> I looked on hackage but I was surprised that I couldn't find this
> simple monad. The package level-monad does look very similar, only
> it uses a different list type for the representation.
>
indeed, level-monad works as well:
import Control.Monad.Levels
import Data.FMList (fromList)
diagN = bfs . mapM fromList
--
Sjoerd Visscher
sjoerd at w3future.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091104/4609dcee/attachment.html
More information about the Haskell-Cafe
mailing list