Paste server written in Haskell. Fork of Hpaste, fully freedom and privacy respecting and generally improved. At the time of writing there's an instance at <http://paste.rel4tion.org>.
Clone
HTTPS:
git clone https://vervis.peers.community/repos/aoqmo
SSH:
git clone USERNAME@vervis.peers.community:aoqmo
Branches
Tags
Cache.hs
{-# OPTIONS -Wall #-}
-- | HTML caching types.
module Hpaste.Types.Cache
(Key(..)
,Cache(..))
where
import Control.Concurrent.MVar (MVar)
import Data.Map (Map)
import Data.Text.Lazy (Text)
import Hpaste.Types.Newtypes
data Key =
Home
| Paste PasteId
| Revision PasteId
| Activity
deriving (Eq,Ord)
data Cache =
Cache {
cacheMap :: MVar (Map Key Text)
}
|