Type Classes

Type Classes

Share this post

Type Classes
Type Classes
hspec, specify, shouldBe

hspec, specify, shouldBe

How simple testing can be.

Chris Martin's avatar
Chris Martin
Jun 26, 2023
∙ Paid
3

Share this post

Type Classes
Type Classes
hspec, specify, shouldBe
Share

The title of this article is a test framework.

import Test.Hspec (hspec, specify, shouldBe)

It’s really important to have a low-friction path to get started with writing tests, or else you probably won’t do it. So get into the habit of starting with this little template (three silly test assertions provided for demonstration):1

import Test.Hspec (hspec, spe…

Keep reading with a 7-day free trial

Subscribe to Type Classes to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Mission Valley Software LLC
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share