[Haskell-cafe] Arrows extentions and ArrowApplicable
Ross Paterson
ross at soi.city.ac.uk
Fri Aug 28 08:44:40 EDT 2009
On Fri, Aug 28, 2009 at 02:33:08PM +0200, Maciej Piechotka wrote:
> Arrows syntax supports Arrow, ArrowChoice(if, case etc.) and
> ArrowLoop(rec) - but not ArrowApplicable. Therefore it is not possible
> to write:
>
> proc x -> do
> a <- someArrow -< x
> a -< x
You can write
proc x -> do
a <- someArrow -< x
a -<< x
(See the Arrow notation section of the GHC User's Guide.)
More information about the Haskell-Cafe
mailing list