
I was looking at some code and couldn't figure out how it was returning a list since there were no list constructors present.
Thanks!
Michael
--- On Tue, 5/12/09, Brent Yorgey
In the code below, is the type returned by the return functions inferred from the result type in the function type signature, i.e., just change the result type to Maybe Int and the code will return a Maybe monad, (Just 4), instead of a List monad?
Indeed, it is. Try it! =) -Brent _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (1)
-
michael rice