2018-03-16 21:06:38 +03:00
|
|
|
module Main
|
|
|
|
( main
|
|
|
|
) where
|
|
|
|
|
|
|
|
import System.Environment
|
|
|
|
import Test.DocTest
|
|
|
|
|
|
|
|
main :: IO ()
|
|
|
|
main = getArgs >>= run
|
|
|
|
|
|
|
|
run :: [String] -> IO ()
|
|
|
|
run args = doctest (map ("-X" ++) extensions ++ args ++ ["-isrc"] ++ sources)
|
|
|
|
|
|
|
|
extensions :: [String]
|
|
|
|
extensions =
|
|
|
|
[ "DeriveFoldable"
|
|
|
|
, "DeriveFunctor"
|
|
|
|
, "DeriveGeneric"
|
|
|
|
, "DeriveTraversable"
|
|
|
|
, "FlexibleContexts"
|
|
|
|
, "FlexibleInstances"
|
|
|
|
, "OverloadedStrings"
|
|
|
|
, "RecordWildCards"
|
|
|
|
, "StrictData"
|
|
|
|
]
|
|
|
|
|
|
|
|
sources :: [String]
|
|
|
|
sources =
|
2018-03-16 22:41:15 +03:00
|
|
|
[ "src/Data/Abstract/Environment.hs"
|
2018-03-16 21:06:38 +03:00
|
|
|
]
|