juan_gandhi: (Default)
[personal profile] juan_gandhi
Until I was told to take a look at coalgebras, and figured out that input deals with codata, and output deals with data, and that StringReader consists of mapping an algebra to a coalgebra, over the same affine functor, X -> AX + 1, I could not figure out how to properly connect my binary files with parser combinators... and the whole functioning of parser combinators in general.

The main point is that parser combinators work not on data, but on codata. So there.

Date: 2011-01-30 05:50 pm (UTC)
From: [identity profile] ivan-gandhi.livejournal.com
Interesting idea. No, I have not, but have to think about it.

Date: 2011-01-30 05:52 pm (UTC)
From: [identity profile] antilamer.livejournal.com
Well, they're exactly what you're talking about :) Look at attoparsec and at attoparsec-iteratee. There's also maybe a dozen other iteratee-related packages on hackage.

Date: 2011-01-30 05:53 pm (UTC)
From: [identity profile] antilamer.livejournal.com
Oops, I misunderstood your post. Oh well, iteratees are interesting anyway..

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

July 2025

S M T W T F S
  12345
6789 101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 12th, 2025 01:18 pm
Powered by Dreamwidth Studios