Skip to content

Commit

Permalink
Remove glean/hs dependencies in glean/lang/hack
Browse files Browse the repository at this point in the history
Reviewed By: phlalx

Differential Revision: D68551726

fbshipit-source-id: f65ae47157be2479a2028988553442a53ff01a7a
  • Loading branch information
Simon Marlow authored and facebook-github-bot committed Jan 24, 2025
1 parent 90d437e commit d256748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion glean/lang/hack/Derive/Env.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ module Derive.Env
import Glean (Backend)
import qualified Glean.Schema.Hack as Hack
import Glean.Util.Some
import Glean.Write.Async
import Glean.Write.SimpleAsync

import Derive.Types
Expand Down
10 changes: 4 additions & 6 deletions glean/lang/hack/Derive/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@ import qualified Options.Applicative as O
import qualified Glean
import qualified Glean.Remote
import qualified Glean.Types as Thrift (Repo)-- gen
import Glean.Write.Async (SendQueueSettings(..), WriterSettings(..))
import Glean.Write.Options (sendQueueOptions, writerOptions)

-- | Configuration options for "Derive" and its passes
data Config = Config
{ cfgRepo :: Thrift.Repo
, cfgNumCapabilities :: Maybe Int -- ^ override @+RTS -Nx -RTS@
, cfgMaxQueryFacts :: Maybe Int
, cfgMaxQuerySize :: Int
, cfgSendQueue :: SendQueueSettings
, cfgWriter :: WriterSettings
, cfgSendQueue :: Glean.SendQueueSettings
, cfgWriter :: Glean.WriterSettings
, cfgChunksPerCapability :: Int -- ^ units of work per worker
, cfgMaxQueueSize :: Int
}
Expand Down Expand Up @@ -91,8 +89,8 @@ options = O.info (O.helper <*> (parserDerive O.<|> parserSchemaId)) O.fullDesc
<> O.metavar "N"
<> O.value defaultMaxQuerySize
<> O.help "maximum number of bytes to query in one step"
cfgSendQueue <- sendQueueOptions
cfgWriter <- writerOptions
cfgSendQueue <- Glean.sendQueueOptions
cfgWriter <- Glean.writerOptions
cfgChunksPerCapability <- O.option O.auto $
O.long "chunks-per-capability"
<> O.metavar "N"
Expand Down

0 comments on commit d256748

Please sign in to comment.