heck

Abstract unit test interface

Stackage Nightly 2026-01-15:1.0.0.2
Latest on Hackage:1.0.0.2

See all snapshots heck appears in

0BSD licensed
Maintained by Taylor Fausak
This version can be pinned in stack with:heck-1.0.0.2@sha256:83ff1380adc6112f6157b038da04142656f7ba36c705ba7bba47523a5f96ec07,833

Module documentation for 1.0.0.2

Depends on 1 package(full list with versions):
Used by 1 package in nightly-2026-01-15(full list with versions):

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"

Changes

Change log

Heck follows the Package Versioning Policy. You can find release notes on GitHub.