hakyll-3.2.6.1: A static website compiler library

Safe HaskellSafe-Infered

Hakyll.Core.Util.String

Description

Miscellaneous string manipulation functions.

Synopsis

Documentation

trim :: String -> StringSource

Trim a string (drop spaces, tabs and newlines at both sides).

replaceAllSource

Arguments

:: String

Pattern

-> (String -> String)

Replacement (called on capture)

-> String

Source string

-> String

Result

A simple (but inefficient) regex replace funcion

splitAllSource

Arguments

:: String

Pattern

-> String

String to split

-> [String]

Result

A simple regex split function. The resulting list will contain no empty strings.