2018-03-16 21:06:38 +03:00
|
|
|
module Main
|
|
|
|
( main
|
|
|
|
) where
|
|
|
|
|
|
|
|
import System.Environment
|
|
|
|
import Test.DocTest
|
|
|
|
|
2018-05-18 20:20:56 +03:00
|
|
|
defaultFiles =
|
2018-08-13 17:20:13 +03:00
|
|
|
[ "src/Data/Abstract/Address/Precise.hs"
|
2018-05-30 16:51:08 +03:00
|
|
|
, "src/Data/Abstract/Environment.hs"
|
2018-05-18 21:03:42 +03:00
|
|
|
, "src/Data/Abstract/Name.hs"
|
2018-06-25 20:02:37 +03:00
|
|
|
, "src/Data/Graph.hs"
|
2018-05-18 20:20:56 +03:00
|
|
|
, "src/Data/Range.hs"
|
|
|
|
, "src/Data/Semigroup/App.hs"
|
|
|
|
]
|
2018-03-26 20:03:25 +03:00
|
|
|
|
2018-03-16 21:06:38 +03:00
|
|
|
main :: IO ()
|
2018-03-17 02:11:57 +03:00
|
|
|
main = do
|
|
|
|
args <- getArgs
|
2018-03-26 20:03:25 +03:00
|
|
|
doctest (map ("-X" ++) extensions ++ "-isrc" : "--fast" : if null args then defaultFiles else args)
|
2018-03-16 21:06:38 +03:00
|
|
|
|
|
|
|
extensions :: [String]
|
|
|
|
extensions =
|
2018-03-22 19:23:11 +03:00
|
|
|
[ "DataKinds"
|
|
|
|
, "DeriveFoldable"
|
2018-03-16 21:06:38 +03:00
|
|
|
, "DeriveFunctor"
|
|
|
|
, "DeriveGeneric"
|
|
|
|
, "DeriveTraversable"
|
|
|
|
, "FlexibleContexts"
|
|
|
|
, "FlexibleInstances"
|
2018-03-22 19:23:11 +03:00
|
|
|
, "MultiParamTypeClasses"
|
2018-03-16 21:06:38 +03:00
|
|
|
, "OverloadedStrings"
|
|
|
|
, "RecordWildCards"
|
2018-03-22 19:23:11 +03:00
|
|
|
, "StandaloneDeriving"
|
2018-03-16 21:06:38 +03:00
|
|
|
, "StrictData"
|
2018-03-26 19:20:22 +03:00
|
|
|
, "TypeApplications"
|
2018-03-16 21:06:38 +03:00
|
|
|
]
|