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
Diff.hs
{-# OPTIONS -Wall #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- | Diff page controller.
module Hpaste.Controller.Diff
(handle)
where
import Hpaste.Types
import Hpaste.Controller.Paste (withPasteKey)
import Hpaste.View.Diff (page)
import Snap.App
-- | Diff one paste with another.
handle :: HPCtrl ()
handle = do
withPasteKey "this" $ \this ->
withPasteKey "that" $ \that ->
output $ page this that
|