#haskell - Mon 19 Feb 2007 between 17:41 and 17:56

NY Lost Funds



nominolo@src init
lambdabotinit [x] = []
init (x:xs) = x : init xs
init [] = undefined
nrb23hm.. I have a foreign ptr function, and I need to force some evaluation, and then return the forced evaluation
dino-Cale: BTW, I would be very interested in a short arrows document a-la _Monads as Container_ (nudge, nudge)
nrb23due to scoping issues
dino-Trying to use HXT lately for something actually practical has got me up to my ass in arrow studies.
nrb23Cale, dino-: yes, I'd be interested in that too :->
dino-And yes, I have been reading the wikibooks stuff on arrows. It's good.
CaleThe best way to think about HXT is to forget that it's got anything to do with arrows, and just try to understand what >>> is doing in the specific context.
pjdddarius: where/when should i look for the paper you're working on? :)
dino-Cale: I may be making it too difficult, but now I need to number things I'm creating in the course of the >>> with HXT.
And I'm unsure how to go about this stateful business with it. :/
ddariuspjd: I'm not going to publish it in anything, I'm not sure how I will make it available. The layout needs to be worked on and I need to revise quite a bit.
pjd: Also, I'm considering making it be self-contained rather than requiring the basics of category theory.
pjd: This site you'll probably also find useful http://www.cs.le.ac.uk/people/akurz/books.html
lambdabotTitle: Electronically Available Books and Other Sources (mainly Category Theory)
pjdwhew
nrb23?where pcap
lambdabothttp://www.haskell.org/networktools/src/pcap/
nrb23could someone take a look at the 'next' function in Pcap.hsc (http://www.haskell.org/networktools/src/pcap/Pcap.hsc)
I think it may have a memory leak
but my knowledge of pointers and finalizers in haskell is poor
maukewhere's the allocation?
nrb23allocaBytes
the PktHdr members aren't strict
so it seems that allocaBytes would go out of scope by the time the result of that function is used
maukedoesn't the IO monad sequence this stuff?
Caledino-: hmm. As in, number them according to the sequence in which they're found?
dino-Cale: Yes, I will have a group of sibling tags and I want to output text lines numbered like 1 <first text>\n2 <second text>\n3 <third...
seems tricky
CaleIt's probably simplest to just use listA, and then zip the result with [1..]
listA lets you collect all the results of an arrow up into a list.
(an ArrowList, not a general arrow :))
Syzygy-?index listA
lambdabotbzzt
Syzygy-Cale: Where is listA?
Calehttp://www.fh-wedel.de/~si/HXmlToolbox/hdoc_arrow/Control-Arrow-ArrowList.html
lambdabothttp://tinyurl.com/upyok

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 

IrcArchive

NY Lost Funds