Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More complex examples #101

Closed
jchia opened this issue Jun 18, 2018 · 1 comment
Closed

More complex examples #101

jchia opened this issue Jun 18, 2018 · 1 comment

Comments

@jchia
Copy link

jchia commented Jun 18, 2018

It seems that the current examples are all about processing some input homogeneously. Can there be an example of a more complicated use case where for example, a file header is read and the content of the header determines how the rest of the file is processed? Is such processing possible with machines?

For example:
The file header is a Word8 n followed by n (Word8, Word8) pairs (x, y). After that the rest of the file is processed byte-by-byte: If some byte b matches any x, the corresponding yis output. Otherwise, b is output.

@YoEight
Copy link
Collaborator

YoEight commented Jul 26, 2018

I use machines in my GetEventStore client, I don't have much documentation for that internal stuff but I hope it helps: https://code.coppermine.io/eventsourcing/haskell-ges/blob/dev/1.0/Database/EventStore/Internal/Operation.hs

@YoEight YoEight closed this as completed Aug 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants