Movatterモバイル変換


[0]ホーム

URL:


base-4.4.0.0: Basic libraries

Portabilityportable
Stabilityexperimental
Maintainerlibraries@haskell.org

Data.String

Contents

Description

TheString type and associated operations.

Synopsis

Documentation

typeString = [Char]Source

AString is a list of characters. String constants in Haskell are values of typeString.

classIsString awhereSource

Class for string-like datastructures; used by the overloaded string extension (-foverloaded-strings in GHC).

Methods

fromString ::String -> aSource

Instances

IsString [Char] 

Functions on strings

lines ::String -> [String]Source

lines breaks a string up into a list of strings at newline characters. The resulting strings do not contain newlines.

words ::String -> [String]Source

words breaks a string up into a list of words, which were delimited by white space.

unlines :: [String] ->StringSource

unlines is an inverse operation tolines. It joins lines, after appending a terminating newline to each.

unwords :: [String] ->StringSource

unwords is an inverse operation towords. It joins words with separating spaces.

Produced byHaddock version 2.9.2


[8]ページ先頭

©2009-2025 Movatter.jp