Relude.Extra

relude-1.2.2.0: Safe, performant, user-friendly and lightweight Haskell Standard Library

Copyright | (c) 2019-2023 Kowainik
License | MIT
Maintainer | Kowainik <xrom.xkov@gmail.com>
Stability | Stable
Portability | Portable
Safe Haskell | Safe-Inferred
Language | Haskell2010

Relude.Extra

Description

This module exports all extra-related stuff. The extra modules are not exported by default, but you can easily bring them to every module in your package by modifying your Prelude file.

Synopsis

- module Relude.Extra.Bifunctor
- module Relude.Extra.CallStack
- module Relude.Extra.Enum
- module Relude.Extra.Foldable
- module Relude.Extra.Foldable1
- module Relude.Extra.Group
- module Relude.Extra.Lens
- module Relude.Extra.Map
- module Relude.Extra.Newtype
- module Relude.Extra.Tuple
- module Relude.Extra.Type

# Documentation

module Relude.Extra.Bifunctor

Additional combinators for `Bifunctor`.

module Relude.Extra.CallStack

Useful functions to extract information from `CallStack`.

module Relude.Extra.Enum

Extra utilities for types that implement `Bounded` and `Enum` constraints.

module Relude.Extra.Foldable

Extra folds for instances of the `Foldable` typeclass. Currently, just a short-circuitable left fold `foldlSC`.

module Relude.Extra.Foldable1

`Foldable1` is a typeclass like `Foldable` but for non-empty structures. For example, `NonEmpty`, `Identity`.

`Foldable1` has all type-safe and total methods like `head1`, `maximum1` in contradiction with `Foldable`.

module Relude.Extra.Group

Grouping functions, polymorphic on return `Map` type.

module Relude.Extra.Lens

Minimal implementation of `lens` package required for basic usage.

module Relude.Extra.Map

The typeclass for `Map`-like data structures.

module Relude.Extra.Newtype

Generic functions that automatically work for any `newtype`.

module Relude.Extra.Tuple

Functions for working with tuples.

module Relude.Extra.Type

Functions for inspecting and working with types.