base is:package
Core data structures and operations
Haskell's base library provides, among other things, core types (e.g.
Bool and
Int), data structures (e.g.
List,
Tuple and
Maybe), the
Exception mechanism, and
the
IO &
Concurrency operations. The
Prelude
module, which is imported by default, exposes a curated set of types
and functions from other modules.
Other data structures like
Map,
Set are available in the
containers library. To work with textual data, use the
text library.
Fast base64 encoding and decoding for ByteStrings
This package provides support for encoding and decoding binary data
according to
base64 (see also
RFC 4648) for strict and
lazy ByteStrings
For a fuller-featured and better-performing Base64 library, see the
base64 package.
RFC 4648-compliant Base16 encodings for ByteStrings
This package provides support for encoding and decoding binary data
according to
base16 (see also
RFC 4648) for strict
(see
Data.ByteString.Base16) and lazy
ByteStrings (see
Data.ByteString.Base16.Lazy).
See the
base16 package which provides superior encoding and
decoding performance as well as support for lazy, short, and strict
variants of
Text and
ByteString values. Additionally,
see the
base-encoding package which provides an uniform API
providing conversion paths between more binary and textual types.
A compatibility layer for base
Provides functions available in later versions of
base to a
wider range of compilers, without requiring you to use CPP pragmas in
your code. See the
README for what is covered. Also see the
changelog for recent changes.
Note that
base-compat does not add any orphan instances.
There is a separate package,
base-orphans, for that.
In addition,
base-compat does not backport any data types or
type classes. See
this section of the README for more
info.
base-compat is designed to have zero dependencies. For a
version of
base-compat that depends on compatibility
libraries for a wider support window, see the
base-compat-batteries package. Most of the modules in
this library have the same names as in
base-compat-batteries
to make it easier to switch between the two. There also exist versions
of each module with the suffix
.Repl, which are distinct from
anything in
base-compat-batteries, to allow for easier use in
GHCi.
Unicode alternatives for common functions and operators
This package defines new symbols for a number of functions, operators
and types in the base package.
All symbols are documented with their actual definition and
information regarding their Unicode code point. They should be
completely interchangeable with their definitions.
For further Unicode goodness you can enable the
UnicodeSyntax
language extension [1]. 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.
Original idea by Péter Diviánszky.
[1]
https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#unicode-syntax
Featureful preludes formed solely from the "base" package
A library which aims to reexport all the non-conflicting and most
general definitions from the "base" package. This includes APIs for
applicatives, arrows, monoids, foldables, traversables, exceptions,
generics, ST, MVars and STM. This package will never have any
dependencies other than "base". Besides a rich prelude it provides
limited ones like
BasePrelude.DataTypes, which only exports the
data-types defined across the "base" package, and
BasePrelude.Operators, which only exports the common operators.
Versioning policy The versioning policy of this package
deviates from PVP in the sense that its exports in part are
transitively determined by the version of "base". Therefore it's
recommended for the users of "base-prelude" to specify the bounds of
"base" as well.
A modern Base64 library
A performant, featureful RFC 4648 and 7049-compliant Base64
implementation
Fast RFC 4648-compliant Base16 encoding
RFC 4648-compliant Base16 encodings and decodings. This library
provides performant encoding and decoding primitives, as well as
support for textual values.
Not on Stackage, so not searched.
"base" package sans "Prelude" module
Foundation scrap box of array & string
Foundation most basic primitives without any dependencies
base-compat with extra batteries
Provides functions available in later versions of
base to a
wider range of compilers, without requiring you to use CPP pragmas in
your code.
This package provides the same API as the
base-compat
library, but depends on compatibility packages (such as
semigroups) to offer a wider support window than
base-compat, which has no dependencies. Most of the modules
in this library have the same names as in
base-compat to make
it easier to switch between the two. There also exist versions of each
module with the suffix
.Repl.Batteries, which are distinct
from anything in
base-compat, to allow for easier use in
GHCi.
See
here for a more comprehensive list of differences
between
base-compat and
base-compat-batteries.
Implementation of BASE58 transcoding for ByteStrings
Base64 implementation for String's.
This Base64 implementation uses the characters A-Z a-z 0-9 + / along
with = to signal the number of characters mod 3. It is compliant with
both PEM (RFC 989 / RFC 1421) and MIME (RFC 2045).
Fast RFC 4648-compliant Base32 encoding
RFC 4648-compliant Base32 encodings and decodings. This library
provides performant encoding and decoding primitives, as well as
support for textual values.
A newtype around ByteString, for base64 encoding
A newtype around ByteString, for base64 encoding. Strict and lazy,
normal and url alphabet variants.
Not on Stackage, so not searched.
RFC4648 Binary-to-text encodings (e.g. base64)
Not on Stackage, so not searched.
The IO functions included in base delimited into small, composable classes
Fast and safe representation of a Base-32 string
Not on Stackage, so not searched.
Parsing and serialization for Base58 addresses (Bitcoin and Ripple)
Fast and safe representation of a Base-58 string
Not on Stackage, so not searched.
Base64-encode and decode streams of bytes. (deprecated)
Not on Stackage, so not searched.
Foundation scrap box of array & string
Not on Stackage, so not searched.
Not on Stackage, so not searched.
Helps migrating projects to base-compat(-batteries).