Hacker News new | ask | show | jobs
by vdijkbas 3285 days ago
Haxl is a powerful abstraction with IMHO a beatifuly simple implementation.

However for our use case at LumiGuide (reading and writing registers of modbus devices) it wasn't simple enough. We just needed an abstraction for batching and did not need caching and the other features Haxl provides.

So I wrote monad-batcher which as the name implies only provides a batching abstraction (which can also be used to execute commands concurrently). All the other features can be build on top of monad-batcher as separate layers (separation of concerns).

The library is available on Hackage but needs a bit more documentation (a tutorial would be nice):

http://hackage.haskell.org/package/monad-batcher