Problem with FFI?

2002-05-25 Thread John Meacham
I may be missing something obvious here, but from the current FFI spec it appears that it is impossible to create libraries in haskell which are meant to be called from c code without running into undefined behavior. The problem is in the definition of hs_init() and hs_exit() . now, it is accepta

Re: arrows

2002-05-25 Thread Magnus Carlsson
Koen Claessen writes: > * Stream processors (from Fudgets) are nice arrows: > > data SP a b = Get (a -> SP a b) | Put a (SP a b) | Nil > > But the first operator assumes that the product type > associated with this arrow must be Haskell's product > (,), but in fact a s

Re: arrows

2002-05-25 Thread Ashley Yakeley
At 2002-05-25 01:32, Koen Claessen wrote: >Might I remind you that an arrow (as defined in category >theory) only requires identy and composition to be defined >and satisfying some laws? > >In particular, an arrow does not have to have the operations >"arr" and "first". Well either "arrow" is be

Re: arrows

2002-05-25 Thread David Feuer
I strongly suspect that arrows without arr could be quite useful... not sure about ones without first. -- Night. An owl flies o'er rooftops. The moon sheds its soft light upon the trees. David Feuer ___ Haskell mailing list [EMAIL PROTECTED] http://

Re: arrows

2002-05-25 Thread John Hughes
On Sat, 25 May 2002, Koen Claessen wrote: > > There are many types which would fit nicely in an arrow > framework, but do not because of the demand of these > operators, here are two examples: > > * Isomorphisms, are nice arrows: > > type Iso a b = (a -> b, b -> a) > > but of course n

Re: arrows

2002-05-25 Thread Koen Claessen
Wolfgang Jeltsch wrote: | Now, I have a type which would fit wonderfully into | the Arrow concept if arrows wouldn't be expected to | have a first operator. Ashley Yakeley replied: | ...then it's not an Arrow. Might I remind you that an arrow (as defined in category theory) only requires i