Popularity
7.7
Stable
Activity
0.0
Stable
0
17
0

Monthly Downloads: 5
Programming language: Haskell
License: MIT License
Tags: Text    

stringlike alternatives and similar packages

Based on the "Text" category.
Alternatively, view stringlike alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of stringlike or a related project?

Add another 'Text' Package

README

stringlike Build Status

Transformations to several string-like types.

Example

{-# LANGUAGE OverloadedStrings #-}

module Main where

import Data.ByteString.Lazy

data Foo = Bar | Baz

instance ToString Foo where
    toText Bar = "bar"
    toText Baz = "baz"

test :: ByteString -> ()
test = const ()

main :: IO ()
main = do
    test $ string Bar
    test $ lbs Baz