Re: [Haskell-cafe] arrow notation

2013-02-07 Thread Julian Blake Kongslie
On Thu, Feb 07, 2013 at 02:49:40PM -0800, Conal Elliott wrote:
 Hi Ross,
 
 I make some use of arrow notation, though sadly I often have to avoid it
 because my (pseudo-)arrows don't have arr. I'd love to see a variant that
 has restricted expressiveness in exchange for arr-freeness.

Are you familiar with Adam Megacz's Generalized Arrows work?
  http://www.cs.berkeley.edu/~megacz/garrows/

(I, too, would love to see Arrows-without-arr in Haskell)

 -- Conal

-- 
-Julian Blake Kongslie jbl...@omgwallhack.org
If this is a mailing list, please CC me on replies.

vim: set ft=text :


signature.asc
Description: Digital signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Will changing associativity of enumerator's ($=) affect anyone? (also: enumerator mailing list)

2011-10-23 Thread Julian Blake Kongslie
On Sun, Oct 23, 2011 at 11:12:49AM -0700, John Millikin wrote:
 enumerator 0.4.15, which includes this change, is now published.

Thanks very much for this change!

-- 
-Julian Blake Kongslie jbl...@omgwallhack.org
If this is a mailing list, please CC me on replies.

vim: set ft=text :


signature.asc
Description: Digital signature
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Curry and Reader monad

2009-05-07 Thread Julian Blake Kongslie
On Thu, 2009-05-07 at 16:45 -0700, Daryoush Mehrtash wrote:
 In the  Is currying monadic? post the author says:
 
 This is again a nested expression. So I wondered if you could
 again flatten it with a monadic do block: 
 let add3 = do
 a - get first parameter
 b - get second parameter
 c - get third parameter
 
 return a+b+c
 OK, so I know that functions in Haskell (which uses currying
 for functions as a general rule) are the Reader monad. But I
 don't understand it well enough to know if that means you can
 use Reader to implement the above... 
 
 (I don't understand Reader at all in fact. I must bang my head
 against it again, but I find it very confusing - how the monad
 is represented, what the functions are, and how they get
 magically applied.) 
 
 
 
 
 Any idea what he is talking about?

A function of a single argument can be represented as a Reader monad,
but Reader doesn't really do the currying action. It provides ask
which is essentially get first parameter. For multiple parameters,
you'd be nesting Readers.

If he's asking for a get next parameter operation, then you need to
track the concept of next, which implies some sort of state or
indexing. An indexed monad in particular is highly appropriate for the
currying monad, as what he's asking for is essentially a session type.

 Thanks
 
 Daryoush

--
-Julian Blake Kongslie 
If this is a mailing list, please CC me on replies.

vim: set ft=text :


signature.asc
Description: This is a digitally signed message part
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe