ideas-1.2: Feedback services for intelligent tutoring systems

Portabilityportable (depends on ghc)
Stabilityprovisional
Maintainerbastiaan.heeren@ou.nl
Safe HaskellNone

Ideas.Text.UTF8

Description

Support for the UTF8 encoding

Synopsis

Documentation

encode :: String -> StringSource

Encode a string to UTF8 format

encodeM :: Monad m => String -> m StringSource

Encode a string to UTF8 format (monadic)

decode :: String -> StringSource

Decode an UTF8 format string to unicode points

decodeM :: Monad m => String -> m StringSource

Decode an UTF8 format string to unicode points (monadic)

isUTF8 :: String -> BoolSource

Test whether the argument is a proper UTF8 string

allBytes :: String -> BoolSource

Test whether all characters are in the range 0-255

propEncoding :: PropertySource

QuickCheck internal encoding/decoding functions