yesod-static-streamly-0.1.2.1: A streamly-based library providing performance-focused alternatives for functionality found in yesod-static.
Copyright(c) Matthew Mosior 2023
LicenseBSD-style
Maintainermattm.github@gmail.com
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Yesod.Static.Streamly.Internal

Description

WARNING

This module is considered internal.

The Package Versioning Policy does not apply.

The contents of this module may change in any way whatsoever and without any warning between minor versions of this package.

Authors importing this library are expected to track development closely.

All credit goes to the author(s)/maintainer(s) of the containers library for the above warning text.

Description

This library utilizes Streamly's superb performance characteristics to replace some of Yesod's functionality with streamly-based functionality.

Synopsis

Yesod.Static Replacement functions

hashFileStreamly :: (MonadIO m, HashAlgorithm hash) => FilePath -> m (Digest hash) Source #

A more performant replacement of hashFile found in Crypto.Hash.Conduit.

sinkHashStreamly :: (Monad m, HashAlgorithm hash) => ByteString -> m (Digest hash) Source #

A more performant replacement of sinkHash found in Crypto.Hash.Conduit.