mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
13 lines
332 B
Haskell
13 lines
332 B
Haskell
module Main
|
|
( main
|
|
) where
|
|
|
|
import System.Environment
|
|
import Test.DocTest
|
|
|
|
main :: IO ()
|
|
main = do
|
|
args <- getArgs
|
|
autogen <- fmap (<> "/build/doctest/autogen") <$> lookupEnv "HASKELL_DIST_DIR"
|
|
doctest (maybe id ((:) . ("-i" <>)) autogen ("-isemantic-code/src" : "--fast" : if null args then ["semantic-core/src"] else args))
|