Improving current standard library #20
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
standard
Related to the standard library
Milestone
While having a new extension system, the standard library should now take advantage of it by providing generic interfaces and defining repetitive behaviors within types. Such basic interfaces should be added:
traversable
: for everything related to list and list-like data-structuresshow
: to convert a type to astr
valuenumeric
: to provide basic algebra on every type (such as string concatenation enabled by the+
operator)ordering
: to enable ordering on other types than numbersboolean
: to provide boolean algebra (and
,or
, andnot
functions)default
: to define a default value for a type (Haskell equivalent tomempty
withMonoid
type-class)These interfaces would come with their respective basic extensions. For instance, there should be an instance of show for every core data type, as there should also be type extensions of the other core interfaces.
The text was updated successfully, but these errors were encountered: