HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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.

  • 8 types
  • 1 class
  • 1 value

class and conversions

2 declarations
classclass ConvertibleStrings a b where
#

Methods

Instances25ConvertibleStrings, …

type synonyms

9 declarations

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!