Copyright | (c) Matthew Mosior 2023 |
---|---|
License | BSD-style |
Maintainer | mattm.github@gmail.com |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- cachedETagLookupStreamly :: FilePath -> IO ETagLookup
- mkHashMapStreamly :: FilePath -> IO (Map FilePath ByteString)
- notHiddenStreamly :: FilePath -> Bool
- getFileListPiecesStreamly :: FilePath -> IO [[String]]
- pathFromRawPiecesStreamly :: FilePath -> [String] -> FilePath
- base64md5FileStreamly :: FilePath -> IO String
- base64Streamly :: ByteString -> String
- hashFileStreamly :: (MonadIO m, HashAlgorithm hash) => FilePath -> m (Digest hash)
- sinkHashStreamly :: (Monad m, HashAlgorithm hash) => ByteString -> m (Digest hash)
Yesod.Static Replacement functions
cachedETagLookupStreamly :: FilePath -> IO ETagLookup Source #
A replacement of cachedETagLookup.
mkHashMapStreamly :: FilePath -> IO (Map FilePath ByteString) Source #
A replacement of mkHashMap.
getFileListPiecesStreamly :: FilePath -> IO [[String]] Source #
A replacement of getFileListPieces.
pathFromRawPiecesStreamly :: FilePath -> [String] -> FilePath Source #
A replacement of pathFromRawPieces.
base64md5FileStreamly :: FilePath -> IO String Source #
A replacement of base64md5File.
base64Streamly :: ByteString -> String Source #
A replacement of base64.
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.