base-unicode-symbols 0.2.3 → 0.2.4
raw patch · 4 files changed
+28/−17 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Prelude.Unicode: (×) :: Num α => α -> α -> α
Files
- LICENSE +1/−1
- README.markdown +13/−10
- base-unicode-symbols.cabal +4/−5
- src/Prelude/Unicode.hs +10/−1
LICENSE view
@@ -1,4 +1,4 @@-Copyright 2009–2018 Roel van Dijk+Copyright 2009–2019 Roel van Dijk All rights reserved.
README.markdown view
@@ -1,19 +1,22 @@-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.+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.+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`](http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#unicode-syntax)+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.+used to stand for certain ASCII character sequences, i.e. `→` instead+of `->`, `∀` instead of `forall` and many others. # Credits
base-unicode-symbols.cabal view
@@ -1,12 +1,11 @@ name: base-unicode-symbols-version: 0.2.3+version: 0.2.4 cabal-version: >=1.6 build-type: Simple stability: provisional-tested-with: GHC ==6.8.1, GHC ==6.10.1, GHC ==6.12.1, GHC ==6.12.3, GHC ==7.0.1, GHC ==7.0.3, GHC ==7.2.1, GHC==8.2.2-author: Roel van Dijk <vandijk.roel@gmail.com>-maintainer: Roel van Dijk <vandijk.roel@gmail.com>-copyright: 2009–2018 Roel van Dijk <vandijk.roel@gmail.com>+author: Roel van Dijk <roel@lambdacube.nl>+maintainer: Roel van Dijk <roel@lambdacube.nl>+copyright: 2009–2019 Roel van Dijk <roel@lambdacube.nl> license: BSD3 license-file: LICENSE category:
src/Prelude/Unicode.hs view
@@ -6,7 +6,7 @@ , (≤), (≥), (≮), (≯) , (−) , π- , (÷), (⋅)+ , (÷), (×), (⋅) , (∘) , (⧺) , (∈), (∉)@@ -68,6 +68,15 @@ (÷) ∷ Fractional α ⇒ α → α → α (÷) = (/) {-# INLINE (÷) #-}++{-|+(×) = ('*')++U+00D7, MULTIPLICATION SIGN+-}+(×) ∷ Num α ⇒ α → α → α+(×) = (*)+{-# INLINE (×) #-} {-| (⋅) = ('*')