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 /

Channel.hs

{-# OPTIONS -Wall #-}

-- | The channel type.

module Hpaste.Types.Channel
       (Channel(..))
       where

import Hpaste.Types.Newtypes
import Control.Applicative
import Data.Text                               (Text)
import Database.PostgreSQL.Simple
import Database.PostgreSQL.Simple.FromRow

data Channel = Channel {
  channelId   :: ChannelId
 ,channelName :: Text
} deriving Show

instance FromRow Channel where
  fromRow = Channel <$> field
		    <*> field
[See repo JSON]