base
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.
A prism that shows and reads integers in base-2 through base-36
Note: This is an improper prism, since leading 0s are stripped when
reading.
>>> "100" ^? base 16
Just 256
>>> 1767707668033969 ^. re (base 36)
"helloworld"
Combinator for the
<base /> element.
Example:
base
Result:
<base />
The base from which calculations are made
Render an integral at base n.
The default kind. Does not extend any type.
base to use rather than file name
Used to define
kind.
Base types do not extend any
type.
Extensible exceptions, except for multiple handlers.
Basic data types and classes.
Basic definitions for the HUnit library.
This module contains what you need to create assertions and test cases
and combine them into test suites.
This module also provides infrastructure for implementing test
controllers (which are used to execute tests). See
Test.HUnit.Text for a great example of how to implement a test
controller.