Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give example of testsuite driver file #1

Closed
RyanGlScott opened this issue Jan 31, 2017 · 1 comment
Closed

Give example of testsuite driver file #1

RyanGlScott opened this issue Jan 31, 2017 · 1 comment

Comments

@RyanGlScott
Copy link
Collaborator

This repo leaves out a description of (arguably) the most important part: how to actually use the generated build module in a testsuite! I don't think this needs to be much, just a simple description in a README that shows this code:

module Main where

import Build_doctests (flags, pkgs, module_sources)
import Data.Foldable (traverse_)
import Test.DocTest

main :: IO ()
main = do
    traverse_ putStrLn args
    doctest args
  where
    args = flags ++ pkgs ++ module_sources
@RyanGlScott
Copy link
Collaborator Author

Oops, I just noticed that you put in this in the code's comments itself.

But I think it'd be nice to have a README anyway - I can tackle this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant