HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulestring-conversions-0.4.0.1Haskell2010

Data.String.Conversions

A type class for converting strings. Supported types are:

Assumes UTF-8 encoding for both types of ByteStrings.

Contents
  1. class and conversions
  2. type synonyms
Synopsis

class and conversions

classclass ConvertibleStrings a b where
#

Methods

Instances25ConvertibleStrings, …

type synonyms

Generic string concatenation (with ghc >= 7.4 this is a re-export from Data.Monoid to avoid clashes.)

method(<>) :: a -> a -> a

An associative operation.

Examples
Example1 expression
[1,2,3] <> [4,5,6][1,2,3,4,5,6]
Example1 expression
Just [1, 2, 3] <> Just [4, 5, 6]Just [1,2,3,4,5,6]
Example1 expression
putStr "Hello, " <> putStrLn "World!"Hello, World!