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
Script.hs
{-# OPTIONS -Wall #-}
{-# LANGUAGE OverloadedStrings #-}
-- | JavaScript controller.
module Hpaste.Controller.Script
(handle)
where
import Hpaste.View.Script (script)
import Snap.Core (modifyResponse,setContentType)
import Snap.App
handle :: Controller c s ()
handle = do
modifyResponse $ setContentType "text/javascript"
outputText $ script
|