doctest-extract

Alternative doctest implementation that extracts comments to modules

https://hub.darcs.net/thielema/doctest-extract/

Version on this page:0.1.1.1
LTS Haskell 22.21:0.1.2
Stackage Nightly 2024-05-06:0.1.2
Latest on Hackage:0.1.2

See all snapshots doctest-extract appears in

BSD-3-Clause licensed and maintained by Henning Thielemann
This version can be pinned in stack with:doctest-extract-0.1.1.1@sha256:914dba62468c8fe0f80468d403b299a3403fd702cd997e80425887857ee39888,3994

Module documentation for 0.1.1.1

There are no documented modules for this package.

Known Issues

  • For compatibility with original doctest parser you cannot write

    {-# LANGUAGE MyPreferredExtension #-}
    

    Instead you must write

    :set -XMyPreferredExtension
    
  • In Literal Haskell files only \\begin{code} ... \\end{code} blocks are scanned, but not bird style code blocks.

  • prop> does not support multi-line code, because both original doctest and haddock do not support it.

  • IO tests are not supported as doctest examples, so far. We need a syntactic distinction for IO tests, because doctest-extract does not employ a type-checker. We could mark IO tests with a specific id function, as in ioTest $ runMyTest or a type annotation, as in runMyTest :: IO ().