git.iko.soy/typeable/http-api-data
on v0.4.1 help sign in
25 lines 826 B history raw
1-----------------------------------------------------------------------------
2-- |
3-- Module : Main (doctests)
4-- Copyright : (C) 2012-14 Edward Kmett
5-- License : BSD-style (see the file LICENSE)
6-- Maintainer : Edward Kmett <ekmett@gmail.com>
7-- Stability : provisional
8-- Portability : portable
9--
10-- This module provides doctests for a project based on the actual versions
11-- of the packages it was built with. It requires a corresponding Setup.lhs
12-- to be added to the project
13-----------------------------------------------------------------------------
14module Main where
16import Build_doctests (flags, pkgs, module_sources)
17import Data.Foldable (traverse_)
18import Test.DocTest
20main :: IO ()
21main = do
22 traverse_ putStrLn args
23 doctest args
24 where
25 args = flags ++ pkgs ++ module_sources