HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

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!