heck: Abstract unit test interface

[ library, testing ] [ Propose Tags ] [ Report a vulnerability ]

Heck provides an abstract unit test interface.


[Skip to Readme]

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

Candidates

Versions [RSS] 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:21:17Z
Distributions
Downloads 3 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

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"