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

master :: src / Data / String /

Extra.hs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{-# LANGUAGE TypeSynonymInstances #-}

-- | Instances that can be converted to a string.

module Data.String.ToString where

import           Data.ByteString
import qualified Data.ByteString.UTF8 as UTF8 (toString)

class ToString string where
  toString :: string -> String

instance ToString String where toString = id

(+++) :: (ToString str1,ToString str2) => str1 -> str2 -> String
str1 +++ str2 = toString str1 ++ toString str2

instance ToString ByteString where toString = UTF8.toString
[See repo JSON]