mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
25 lines
439 B
Haskell
25 lines
439 B
Haskell
module Main
|
|
( main
|
|
) where
|
|
|
|
import System.Environment
|
|
import Test.DocTest
|
|
|
|
main :: IO ()
|
|
main = do
|
|
args <- getArgs
|
|
doctest (map ("-X" ++) extensions ++ "-isrc" : if null args then ["src"] else args)
|
|
|
|
extensions :: [String]
|
|
extensions =
|
|
[ "DeriveFoldable"
|
|
, "DeriveFunctor"
|
|
, "DeriveGeneric"
|
|
, "DeriveTraversable"
|
|
, "FlexibleContexts"
|
|
, "FlexibleInstances"
|
|
, "OverloadedStrings"
|
|
, "RecordWildCards"
|
|
, "StrictData"
|
|
]
|