nikita-volkov / hasql-transaction

A composable abstraction over retriable transactions for Hasql
http://hackage.haskell.org/package/hasql-transaction
MIT License
12 stars 15 forks source link

Add an Alternative instance #1

Open nikita-volkov opened 8 years ago

nikita-volkov commented 8 years ago

Which will interpret empty as an instruction to immediately retry the transaction and <|> as a composition with an alternative transaction to execute in case of failure.

arianvp commented 7 years ago

I need this. How can I help implement :"D

nikita-volkov commented 7 years ago

I can suggest nothing better than to study the source.

arianvp commented 7 years ago

Alright will do. :)