[Haskell-cafe] Question on `runState'

Captain Freako capn.freako at gmail.com
Mon Oct 17 17:59:41 CEST 2011


In this excerpt from the `StateArrow' page:

runState :: Arrow<http://hackage.haskell.org/packages/archive/base/4.2.0.2/doc/html/Control-Arrow.html#t:Arrow>a
=>
StateArrow<http://hackage.haskell.org/packages/archive/arrows/0.4.1.2/doc/html/Control-Arrow-Transformer-State.html#t:StateArrow>s
a
*e* b -> a (e, s) (b,
s)Source<http://hackage.haskell.org/packages/archive/arrows/0.4.1.2/doc/html/src/Control-Arrow-Transformer-State.html#runState>

what's the significance of having written "StateArrow s a *e* b", instead of
"StateArrow s a b c"?


Thanks,

-db
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111017/79b16539/attachment.htm>


More information about the Haskell-Cafe mailing list