heck: Abstract unit test interface

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]

Heck provides an abstract unit test interface.


[Skip to Readme]

Properties

Versions 0.2025.5.22, 0.2025.5.22
Change log CHANGELOG.md
Dependencies base (>=4.19 && <4.22) [details]
License 0BSD
Author
Maintainer Taylor Fausak
Category Testing
Source repo head: git clone https://github.com/tfausak/heck
Uploaded by fozworth at 2025-05-22T15:13:45Z

Modules

[Index] [Quick Jump]

Flags

Manual Flags

NameDescriptionDefault
pedanticDisabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for heck-0.2025.5.22

[back to package description]

Heck

Heck is a Haskell library that provides a abstract unit test interface. It can be used to write tests without depending on any particular test library.

Example

import Heck

spec :: (Applicative m, Monad n) => Test m n -> n ()
spec t = describe t "something" $ do
  it t "works" $ do
    assertEq t 'b' (max 'a' 'b')
  it t "fails" $ do
    assertEq t "expected" "actual"