Re: [Haskell-cafe] The Arrow class (was: Vague: Assembly line process)

2010-06-19 Thread Luke Palmer
On Fri, Jun 18, 2010 at 5:57 PM, Ryan Ingram wrote: > Related to this, I really would like to be able to use arrow notation > without "arr"; I was looking into writing a "circuit optimizer" that > modified my arrow-like circuit structure, but since it's impossible to > "look inside" arr, I ran int

Re: [Haskell-cafe] The Arrow class (was: Vague: Assembly line process)

2010-06-18 Thread Edward Kmett
Hi Ryan, On Fri, Jun 18, 2010 at 7:57 PM, Ryan Ingram wrote: > Related to this, I really would like to be able to use arrow notation > without "arr"; I was looking into writing a "circuit optimizer" that > modified my arrow-like circuit structure, but since it's impossible to > "look inside" arr

Re: [Haskell-cafe] The Arrow class (was: Vague: Assembly line process)

2010-06-18 Thread Ryan Ingram
Related to this, I really would like to be able to use arrow notation without "arr"; I was looking into writing a "circuit optimizer" that modified my arrow-like circuit structure, but since it's impossible to "look inside" arr, I ran into a brick wall. Has anyone done any analysis of what operati

Re: [Haskell-cafe] The Arrow class (was: Vague: Assembly line process)

2010-06-16 Thread Edward Kmett
On Wed, Jun 16, 2010 at 6:55 AM, Tillmann Rendel < ren...@mathematik.uni-marburg.de> wrote: > Bas van Dijk wrote: > >> data Iso (⇝) a b = Iso { ab ∷ a ⇝ b >> , ba ∷ b ⇝ a >> } >> >> type IsoFunc = Iso (→) >> >> instance Category (⇝) ⇒ Category (Iso (⇝))

[Haskell-cafe] The Arrow class (was: Vague: Assembly line process)

2010-06-16 Thread Tillmann Rendel
Bas van Dijk wrote: data Iso (⇝) a b = Iso { ab ∷ a ⇝ b , ba ∷ b ⇝ a } type IsoFunc = Iso (→) instance Category (⇝) ⇒ Category (Iso (⇝)) where id = Iso id id Iso bc cb . Iso ab ba = Iso (bc . ab) (ba . cb) An 'Iso (⇝)' also _almost_ forms an