2022-05-31 18:42:21 +03:00
|
|
|
{ roots =
|
|
|
|
[ -- All the executables (including tests) have an entrypoint called
|
|
|
|
-- `Main.main`, which means that Weeder will run for any package that has
|
|
|
|
-- been built (_as long as_ it is built with `-fwrite-ide-info`).
|
|
|
|
"^Main.main$"
|
|
|
|
|
|
|
|
-- Modules generated by Cabal. These are, according to Weeder repository
|
|
|
|
-- tips, safe to ignore: https://github.com/ocharles/weeder/#tips
|
|
|
|
, "^Paths_.*"
|
|
|
|
|
|
|
|
-- "Library" modules that may one day be released as standalone OSS
|
|
|
|
-- things. While these functions may not all be used, they're still worth
|
|
|
|
-- keeping around until this module is extracted from the monorepo.
|
|
|
|
, "^Control.Arrow.Extended.*"
|
2022-06-09 19:39:50 +03:00
|
|
|
|
|
|
|
, "^Data.Aeson.Ordered.*"
|
|
|
|
, "^Data.HashMap.Strict.Multi.*"
|
2022-05-31 18:42:21 +03:00
|
|
|
, "^Data.HashMap.Strict.NonEmpty.*"
|
2022-06-09 19:39:50 +03:00
|
|
|
, "^Data.Text.Casing.*"
|
|
|
|
, "^Data.Text.Extended.*"
|
|
|
|
, "^Data.Trie.*"
|
|
|
|
|
|
|
|
, "^Database.MSSQL.Transaction.*"
|
2022-05-31 18:42:21 +03:00
|
|
|
|
|
|
|
-- Debugging functions. They are not entry points, but if we include them
|
|
|
|
-- as such, Weeder won't try to get rid of the definitions.
|
|
|
|
--
|
|
|
|
-- https://github.com/ocharles/weeder/pull/58
|
|
|
|
, "^Hasura.Prelude.ltrace$"
|
|
|
|
, "^Hasura.Prelude.ltraceM$"
|
2022-06-09 19:39:50 +03:00
|
|
|
|
|
|
|
-- TemplateHaskell and QuasiQuotes aren't detected by Weeder, so we have
|
|
|
|
-- to sort through these manually.
|
|
|
|
, "^Data.Text.NonEmpty.nonEmptyTextQQ$"
|
|
|
|
|
|
|
|
, "^Hasura.SQL.TH.backendCase$"
|
|
|
|
, "^Hasura.SQL.TH.backendConstructors$"
|
|
|
|
, "^Hasura.SQL.TH.backendData$"
|
|
|
|
, "^Hasura.SQL.TH.forEachBackend$"
|
|
|
|
, "^Hasura.SQL.TH.getBackendTagName$"
|
|
|
|
, "^Hasura.SQL.TH.getBackendTypeValue$"
|
|
|
|
, "^Hasura.SQL.TH.getBackendValue$"
|
|
|
|
, "^Hasura.SQL.TH.getBackendValueName$"
|
|
|
|
, "^Hasura.SQL.TH.mkDispatch$"
|
2022-05-31 18:42:21 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
, type-class-roots = True
|
|
|
|
}
|