utility-ht: Various small helper functions for Lists, Maybes, Tuples, Functions

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Various small helper functions for Lists, Maybes, Tuples, Functions. Some of these functions are improved implementations of standard functions. They have the same name as their standard counterparts. Others are equivalent to functions from the base package, but if you import them from this utility package then you can write code that runs on older GHC versions or other compilers like MicroHs, Hugs and JHC.

All modules are plain Haskell 98. The package depends exclusively on the base package and only that portions of base that are simple to port. Thus you do not risk a dependency avalanche by importing it. However, further splitting the base package might invalidate this statement.

The package defines no custom data types.

Alternative packages: Useful, MissingH


[Skip to Readme]

Properties

Versions 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.5.1, 0.0.6, 0.0.7, 0.0.7.1, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.15, 0.0.16, 0.0.17, 0.0.17.1, 0.0.17.2, 0.0.18
Change log None available
Dependencies base (>=2 && <5) [details]
License BSD-3-Clause
Author Henning Thielemann <haskell@henning-thielemann.de>
Maintainer Henning Thielemann <haskell@henning-thielemann.de>
Category Data, List
Source repo head: darcs get http://code.haskell.org/~thielema/utility/
this: darcs get http://code.haskell.org/~thielema/utility/ --tag 0.0.18
Uploaded by HenningThielemann at 2025-12-07T10:03:08Z

Modules

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for utility-ht-0.0.18

[back to package description]

I started this package because there were requests for adding new utility functions to the @base@ package, often to the Data.List module. However, adding a function to Data.List takes a long time and if I actually import it, my package depends on a new GHC version just for the sake of a simple utility function. It seemed more appropriate to me to collect such functions in a simple third-party package.

Over the time, however, many but not all functions were added to @base@ and are now in wide use. Some functions even got fancy optimizations in @base@. Thus some functions in this package may look outdated. However, I keep them for compatibility. So far, I have not removed any function.

The package contains contributions to Data.List by David Feuer.