freckle-app-1.19.0.0: Haskell application toolkit used at Freckle
Safe HaskellSafe-Inferred
LanguageGHC2021

Freckle.App.Http.Cache.State

Description

HTTP caching via MonadState

This module implements HTTP caching for simple use-cases, such as testing Freckle.App.Http.Cache itself.

Documentation

newtype Cache Source #

Constructors

Cache 

Instances

Instances details
Monoid Cache Source # 
Instance details

Defined in Freckle.App.Http.Cache.State

Methods

mempty :: Cache #

mappend :: Cache -> Cache -> Cache #

mconcat :: [Cache] -> Cache #

Semigroup Cache Source # 
Instance details

Defined in Freckle.App.Http.Cache.State

Methods

(<>) :: Cache -> Cache -> Cache #

sconcat :: NonEmpty Cache -> Cache #

stimes :: Integral b => b -> Cache -> Cache #

HasCache Cache Source # 
Instance details

Defined in Freckle.App.Http.Cache.State

class HasCache env where Source #

Methods

cacheL :: Lens' env Cache Source #

Instances

Instances details
HasCache Cache Source # 
Instance details

Defined in Freckle.App.Http.Cache.State