case-insensitive-1.2.0.4: Case insensitive string comparison

Copyright(c) 2011-2013 Bas van Dijk
LicenseBSD-style (see the file LICENSE)
MaintainerBas van Dijk <v.dijk.bas@gmail.com>
Safe HaskellUnsafe
LanguageHaskell98

Data.CaseInsensitive.Unsafe

Description

Provides an unsafe way to create a case insensitive string-like value.

Synopsis

Documentation

unsafeMk :: FoldCase s => s -> CI s Source

Constructs a CI from an already case folded string-like value. The given string is used both as the original as well as the foldedCase.

This function is unsafe since the compiler can't guarantee that the provided string is case folded.