Safe HaskellSafe

Eta.Classes.IsString

Description

The type class IsString defines a convertString method that allows to convert from a regular String to another type that implements this type class.

It is very useful for using with other string-like types like ByteString or ByteArray

Synopsis

Documentation

convertString :: IsString a => String -> a #

Converts a String into another string-like type.

class IsString a where #

Minimal complete definition

fromString

Methods

fromString :: String -> a #

Instances

(~) * a Char => IsString [a] 

Methods

fromString :: String -> [a] #

IsString a => IsString (Const * a b) 

Methods

fromString :: String -> Const * a b #