You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, botan-low (and botan) only provide an interface that requires MonadIO, which makes rewriting functions like amazonka-core's sinkHash difficult*. Hashing is morally pure, even if under the hood IO actions are being called. The provided IncrementalHash class is too high level to really be that useful. It can be written using unsafePerformIO fairly easily, but the API above is much easier to work with.
* I would be surprised if it's actually ever used in a context where m doesn't have MonadIO, but that's beside the point.
The text was updated successfully, but these errors were encountered:
Cryptonite/crypton provide a nice interface for incremental hashing via the API (unnecessary type indirection removed for clarity):
Currently, botan-low (and botan) only provide an interface that requires
MonadIO
, which makes rewriting functions likeamazonka-core
'ssinkHash
difficult*. Hashing is morally pure, even if under the hood IO actions are being called. The providedIncrementalHash
class is too high level to really be that useful. It can be written using unsafePerformIO fairly easily, but the API above is much easier to work with.* I would be surprised if it's actually ever used in a context where
m
doesn't haveMonadIO
, but that's beside the point.The text was updated successfully, but these errors were encountered: