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.Default.Util.Streamly

Description

Streamly-based alternative functionality for Yesod.Default.Util.

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

Synopsis

Yesod.Default.Util Replacement function

addStaticContentExternalStreamly Source #

Arguments

:: (ByteString -> Either a ByteString)

javascript minifier

-> (ByteString -> String)

hash function to determine file name

-> FilePath

location of static directory. files will be placed within a "tmp" subfolder

-> ([Text] -> Route master)

route constructor, taking a list of pieces

-> Text

filename extension

-> Text

mime type

-> ByteString

file contents

-> HandlerFor master (Maybe (Either Text (Route master, [(Text, Text)]))) 

A more performant replacement of addStaticContentExternal found in Yesod.Default.Util.