base-unicode-symbols

Unicode alternatives for common functions and operators

http://haskell.org/haskellwiki/Unicode-symbols

Version on this page:0.2.3
LTS Haskell 22.41:0.2.4.2
Stackage Nightly 2024-11-12:0.2.4.2
Latest on Hackage:0.2.4.2

See all snapshots base-unicode-symbols appears in

BSD-3-Clause licensed and maintained by Roel van Dijk
This version can be pinned in stack with:base-unicode-symbols-0.2.3@sha256:62577079cd08b31ee8e6808c5db2c969ad9a66ba272adc2b39571938686fdf3b,2537

Module documentation for 0.2.3

This package defines Unicode symbol aliases for a number of functions and operators in the base package of the Haskell standard library. Many of these aliases enable the use of standard mathematical notation in place of ASCII approximations or textual names. For example, (∧) (U+2227 LOGICAL AND) can be used in place of (&&) for boolean AND.

All symbols are documented with their actual definition and their Unicode code point. They should be completely interchangeable with their definitions.

Versus the UnicodeSyntax language extension

This library only provides Unicode aliases for library functions. If you want to use Unicode symbols for core language tokens, also enable the UnicodeSyntax language extension. This extension enables Unicode characters to be used to stand for certain ASCII character sequences, i.e. instead of ->, instead of forall and many others.

Credits

Original idea by Péter Diviánszky.