yesod-static-streamly-0.1.5.3: 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 (INTERNAL)

mkStaticFilesStreamly' Source #

Arguments

:: FilePath

static directory

-> Bool

append checksum query parameter

-> Int

buffer size

-> Q [Dec] 

A replacement of mkStaticFiles'.

mkStaticFilesListStreamly Source #

Arguments

:: FilePath

static directory

-> [[String]]

list of files to create identifiers for

-> Bool

append checksum query parameter

-> Int

buffer size

-> Q [Dec] 

A replacement of mkStaticFilesList.

mkStaticFilesListStreamly' Source #

Arguments

:: FilePath

static directory

-> [([String], [String])]

list of files to create identifiers for, where the first argument of the tuple is the identifier alias and the second is the actual file name

-> Bool

append checksum query parameter

-> Int

buffer size

-> Q [Dec] 

A replacement of mkStaticFilesList'.

data CombineTypeStreamly Source #

A replacement of CombineType.

Constructors

JS 
CSS 

data CombineSettingsStreamly Source #

A replacement of CombineSettings.

Constructors

CombineSettingsStreamly 

Fields

Instances

Instances details
Default CombineSettingsStreamly Source # 
Instance details

Defined in Yesod.Static.Streamly.Internal

combineStaticsStreamly' Source #

Arguments

:: CombineTypeStreamly 
-> CombineSettingsStreamly 
-> [Route Static]

files to combine

-> Int 
-> Q Exp 

A more performant replacement of combineStatics'.

hashFileStreamly :: (MonadIO m, HashAlgorithm hash) => FilePath -> Int -> 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.