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
Language.hs
{-# OPTIONS -Wall #-}
-- | The language type.
module Hpaste.Types.Language
(Language(..))
where
import Hpaste.Types.Newtypes
import Control.Applicative
import Data.Text (Text)
import Database.PostgreSQL.Simple
import Database.PostgreSQL.Simple.FromRow
data Language = Language {
languageId :: LanguageId
,languageName :: Text
,languageTitle :: Text
} deriving Show
instance FromRow Language where
fromRow = Language <$> field
<*> field
<*> field
|