1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00
semantic/test/Doctests.hs

25 lines
447 B
Haskell
Raw Normal View History

2018-03-16 21:06:38 +03:00
module Main
( main
) where
import System.Environment
import Test.DocTest
main :: IO ()
2018-03-17 02:11:57 +03:00
main = do
args <- getArgs
2018-03-19 16:40:19 +03:00
doctest (map ("-X" ++) extensions ++ args ++ "-isrc" : if null args then ["src"] else args)
2018-03-16 21:06:38 +03:00
extensions :: [String]
extensions =
[ "DeriveFoldable"
, "DeriveFunctor"
, "DeriveGeneric"
, "DeriveTraversable"
, "FlexibleContexts"
, "FlexibleInstances"
, "OverloadedStrings"
, "RecordWildCards"
, "StrictData"
]