File: unit-tests.hs

package info (click to toggle)
bnfc 2.9.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,252 kB
  • sloc: haskell: 16,607; yacc: 240; makefile: 85
file content (20 lines) | stat: -rw-r--r-- 856 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}

-- This file is intentionally left blank.

-- See http://hspec.github.io/hspec-discover.html
--
-- This instructs GHC to invoke hspec-discover as a preprocessor on the
-- source file. The rest of the source file is empty, so there is nothing
-- to preprocess. Rather than preprocessing, hspec-discover scans the
-- file system for all spec files belonging to a project and generates
-- the required boilerplate. hspec-discover does not parse any source
-- files, it instead relies on the following conventions:
--
--   * Spec files have to be placed into the same directory as the test
--     driver, or into a subdirectory.
--
--   * The name of a spec file has to end in Spec.hs; the module name has
--     to match the file name.
--
--   * Each spec file has to export a top-level binding spec of type Spec.