Examples-0.1.0: Haskell code examples
Copyright© Frank Jung 2021-2023
LicenseGPL-3.0-only
Safe HaskellSafe-Inferred
LanguageHaskell2010

Strings

Description

 
Synopsis

Types

newtype CharList Source #

Example of creating and using new types.

>>> CharList "this will be shown!"
CharList {getCharList = "this will be shown!"}
>>> CharList "benny" == CharList "benny"
True
>>> CharList "benny" == CharList "andy"
False

Constructors

CharList 

Fields

Instances

Instances details
Show CharList Source # 
Instance details

Defined in Strings

Eq CharList Source # 
Instance details

Defined in Strings

Functions

removeNonUpperCase :: String -> String Source #

Remove non upper case characters.

>>> removeNonUpperCase("ABcdeF")
"ABF"