git.iko.soy/typeable/swagger2
on travis-regen help sign in
33 lines 833 B history raw
1{-# LANGUAGE CPP #-}
2{-# OPTIONS_GHC -Wall #-}
3module Main (main) where
5#ifndef MIN_VERSION_cabal_doctest
6#define MIN_VERSION_cabal_doctest(x,y,z) 0
7#endif
9#if MIN_VERSION_cabal_doctest(1,0,0)
11import Distribution.Extra.Doctest ( defaultMainWithDoctests )
12main :: IO ()
13main = defaultMainWithDoctests "doctests"
15#else
17#ifdef MIN_VERSION_Cabal
18-- If the macro is defined, we have new cabal-install,
19-- but for some reason we don't have cabal-doctest in package-db
20--
21-- Probably we are running cabal sdist, when otherwise using new-build
22-- workflow
23#warning You are configuring this package without cabal-doctest installed. \
24 The doctests test-suite will not work as a result. \
25 To fix this, install cabal-doctest before configuring.
26#endif
28import Distribution.Simple
30main :: IO ()
31main = defaultMain
33#endif