File: README.markdown

package info (click to toggle)
haskell-base-unicode-symbols 0.2.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 112 kB
  • sloc: haskell: 315; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 1,057 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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`](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#unicode-syntax)
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.