Re: [Haskell-cafe] Are there standard idioms for lazy, pure error handling?

2009-12-04 Thread Jason McCarty
wren ng thornton wrote: concat1 :: T a b - (b - T a b) - T a b This could just as easily be concat :: T a b - (b - T a c) - T a c right? It's a little weird to call this concatenation, but I bet it could come in handy. -- Jason McCarty jmcca...@sent.com

Re: [Haskell-cafe] Re: Num instances for 2-dimensional types

2009-10-07 Thread Jason McCarty
(if you don't take 0*x = 0 as an axiom, I think there are two possibilities for 0*∞). -- Jason McCarty jmcca...@sent.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Observations about foldM

2009-08-18 Thread Jason McCarty
) return xs foldlM f = foldl (\t h - t = flip f h) . return depending on the monad. foldl1M f (x:xs) = foldlM f x xs -- Jason McCarty jmcca...@sent.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo