File tree Expand file tree Collapse file tree
glean/lang/haskell/Glean/Indexer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ data Haskell = Haskell
2424 { haskellBinary :: FilePath
2525 , haskellGhc :: Maybe FilePath
2626 , haskellSrcs :: [FilePath ]
27+ , haskellArgs :: [String ]
2728 }
2829
2930options :: Parser Haskell
@@ -42,6 +43,9 @@ options = do
4243 " (otherwise read existing .hie files)" )
4344 )
4445 haskellSrcs <- many (strOption (long " src" ))
46+ haskellArgs <- many (strOption (
47+ long " arg" <> metavar " ARG" <>
48+ help " argument to pass to hie-indexer" ))
4549 return Haskell {.. }
4650
4751indexer :: Indexer Haskell
@@ -77,7 +81,7 @@ indexer =
7781 , " --repo-hash"
7882 , " ${TEST_REPO_HASH}"
7983 , hieDir
80- ] <> [ " --src=" <> f | f <- haskellSrcs ]
84+ ] <> [ " --src=" <> f | f <- haskellSrcs ] <> haskellArgs
8185 , extDerivePredicates = [
8286 " hs.OccNameLowerCase" ,
8387 " hs.SourceModule"
You can’t perform that action at this time.
0 commit comments