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>.

[[ 🗃 ^aoqmo toothpaste ]] :: [📥 Inbox] [📤 Outbox] [🐤 Followers] [🤝 Collaborators] [🛠 Commits]

Clone

HTTPS: git clone https://vervis.peers.community/repos/aoqmo

SSH: git clone USERNAME@vervis.peers.community:aoqmo

Branches

Tags

hpaste :: src / Hpaste / Types /

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)
  }
[See repo JSON]