mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-10-04 22:07:40 +03:00
server: Remove Weeder.
We don't care too much about Weeder's recommendations right now, so let's just remove it. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10076 GitOrigin-RevId: accf663d6183525d8ff8a72f3ee8d509a5286ef3
This commit is contained in:
parent
95fcd44a45
commit
83073fc2f8
@ -64,7 +64,7 @@ package *
|
||||
-- but optimizations for local hasura packages are overridden/controlled
|
||||
-- via the 'optimize-hasura' flag.
|
||||
optimization: 2
|
||||
-- For tooling, e.g. 'weeder', and IDE-like stuff:
|
||||
-- For tooling support, e.g. HLS:
|
||||
ghc-options: -fwrite-ide-info
|
||||
|
||||
-- we statically link malloc from mimalloc. Out of an abundance of caution,
|
||||
|
11
server/lib/graphql-parser/.gitignore
vendored
11
server/lib/graphql-parser/.gitignore
vendored
@ -1,11 +0,0 @@
|
||||
# Haskell
|
||||
/dist-newstyle
|
||||
cabal.project.local
|
||||
|
||||
# direnv
|
||||
/.direnv
|
||||
/.envrc.local
|
||||
|
||||
# Nix
|
||||
/result
|
||||
/result-*
|
@ -1 +0,0 @@
|
||||
infix 0 <?>
|
@ -1,14 +0,0 @@
|
||||
packages: ./
|
||||
|
||||
package *
|
||||
optimization: 2
|
||||
|
||||
ghc-options: -fwrite-ide-info
|
||||
|
||||
haddock-html: true
|
||||
haddock-hoogle: true
|
||||
haddock-hyperlink-source: true
|
||||
haddock-quickjump: true
|
||||
|
||||
package graphql-parser
|
||||
ghc-options: -j
|
@ -1 +0,0 @@
|
||||
../cabal.project
|
@ -1,134 +0,0 @@
|
||||
active-repositories: hackage.haskell.org:merge
|
||||
constraints: any.OneTuple ==0.3.1,
|
||||
any.QuickCheck ==2.14.2,
|
||||
QuickCheck -old-random +templatehaskell,
|
||||
any.StateVar ==1.2.2,
|
||||
any.aeson ==2.1.1.0,
|
||||
aeson -cffi +ordered-keymap,
|
||||
any.ansi-terminal ==0.11.4,
|
||||
ansi-terminal -example +win32-2-13-1,
|
||||
any.ansi-wl-pprint ==0.6.9,
|
||||
ansi-wl-pprint -example,
|
||||
any.array ==0.5.4.0,
|
||||
any.assoc ==1.0.2,
|
||||
any.async ==2.2.4,
|
||||
async -bench,
|
||||
any.attoparsec ==0.14.4,
|
||||
attoparsec -developer,
|
||||
any.autodocodec ==0.2.0.2,
|
||||
any.barbies ==2.0.4.0,
|
||||
any.base ==4.16.4.0,
|
||||
any.base-compat ==0.12.2,
|
||||
any.base-compat-batteries ==0.12.2,
|
||||
any.base-orphans ==0.8.7,
|
||||
any.bifunctors ==5.5.14,
|
||||
bifunctors +semigroups +tagged,
|
||||
any.binary ==0.8.9.0,
|
||||
any.bytestring ==0.11.3.1,
|
||||
any.colour ==2.3.6,
|
||||
any.comonad ==5.0.8,
|
||||
comonad +containers +distributive +indexed-traversable,
|
||||
any.concurrent-output ==1.10.17,
|
||||
any.constraints ==0.13.4,
|
||||
any.containers ==0.6.5.1,
|
||||
any.contravariant ==1.5.5,
|
||||
contravariant +semigroups +statevar +tagged,
|
||||
any.data-array-byte ==0.1.0.1,
|
||||
any.data-fix ==0.3.2,
|
||||
any.deepseq ==1.4.6.1,
|
||||
any.deferred-folds ==0.9.18.2,
|
||||
any.directory ==1.3.6.2,
|
||||
any.distributive ==0.6.2.1,
|
||||
distributive +semigroups +tagged,
|
||||
any.dlist ==1.0,
|
||||
dlist -werror,
|
||||
any.erf ==2.0.0.0,
|
||||
any.exceptions ==0.10.4,
|
||||
any.filepath ==1.4.2.2,
|
||||
any.foldl ==1.4.14,
|
||||
any.generically ==0.1,
|
||||
any.ghc-bignum ==1.2,
|
||||
any.ghc-boot-th ==9.2.5,
|
||||
any.ghc-prim ==0.8.0,
|
||||
any.happy ==1.20.0,
|
||||
any.hashable ==1.4.2.0,
|
||||
hashable +integer-gmp -random-initial-seed,
|
||||
any.haskell-lexer ==1.1.1,
|
||||
any.hedgehog ==1.2,
|
||||
any.hsc2hs ==0.68.8,
|
||||
hsc2hs -in-ghc-tree,
|
||||
any.indexed-traversable ==0.1.2,
|
||||
any.indexed-traversable-instances ==0.1.1.1,
|
||||
any.integer-logarithms ==1.0.3.1,
|
||||
integer-logarithms -check-bounds +integer-gmp,
|
||||
any.isomorphism-class ==0.1.0.7,
|
||||
any.lifted-async ==0.10.2.3,
|
||||
any.lifted-base ==0.2.3.12,
|
||||
any.mmorph ==1.2.0,
|
||||
any.monad-control ==1.0.3.1,
|
||||
any.mtl ==2.2.2,
|
||||
any.optparse-applicative ==0.17.0.0,
|
||||
optparse-applicative +process,
|
||||
any.pretty ==1.1.3.6,
|
||||
any.pretty-show ==1.10,
|
||||
any.prettyprinter ==1.7.1,
|
||||
prettyprinter -buildreadme +text,
|
||||
any.primitive ==0.7.4.0,
|
||||
any.process ==1.6.16.0,
|
||||
any.profunctors ==5.6.2,
|
||||
any.random ==1.2.1.1,
|
||||
any.resourcet ==1.2.6,
|
||||
any.rts ==1.0.2,
|
||||
any.scientific ==0.3.7.0,
|
||||
scientific -bytestring-builder -integer-simple,
|
||||
any.semialign ==1.2.0.1,
|
||||
semialign +semigroupoids,
|
||||
any.semigroupoids ==5.3.7,
|
||||
semigroupoids +comonad +containers +contravariant +distributive +tagged +unordered-containers,
|
||||
any.split ==0.2.3.5,
|
||||
any.splitmix ==0.1.0.4,
|
||||
splitmix -optimised-mixer,
|
||||
any.stm ==2.5.0.2,
|
||||
any.strict ==0.4.0.1,
|
||||
strict +assoc,
|
||||
any.tagged ==0.8.6.1,
|
||||
tagged +deepseq +transformers,
|
||||
any.tasty ==1.4.3,
|
||||
tasty +unix,
|
||||
any.tasty-bench ==0.3.2,
|
||||
tasty-bench -debug +tasty,
|
||||
any.template-haskell ==2.18.0.0,
|
||||
any.terminal-size ==0.3.3,
|
||||
any.text ==1.2.5.0,
|
||||
any.text-builder ==0.6.7,
|
||||
any.text-builder-dev ==0.3.3.2,
|
||||
any.text-short ==0.1.5,
|
||||
text-short -asserts,
|
||||
any.th-abstraction ==0.4.5.0,
|
||||
any.th-compat ==0.1.4,
|
||||
any.th-lift ==0.8.2,
|
||||
any.th-lift-instances ==0.1.20,
|
||||
any.these ==1.1.1.1,
|
||||
these +assoc,
|
||||
any.time ==1.11.1.1,
|
||||
any.time-compat ==1.9.6.1,
|
||||
time-compat -old-locale,
|
||||
any.transformers ==0.5.6.2,
|
||||
any.transformers-base ==0.4.6,
|
||||
transformers-base +orphaninstances,
|
||||
any.transformers-compat ==0.7.2,
|
||||
transformers-compat -five +five-three -four +generic-deriving +mtl -three -two,
|
||||
any.type-equality ==1,
|
||||
any.unix ==2.7.2.2,
|
||||
any.unliftio-core ==0.2.0.1,
|
||||
any.unordered-containers ==0.2.19.1,
|
||||
unordered-containers -debug,
|
||||
any.uuid-types ==1.0.5,
|
||||
any.validity ==0.12.0.1,
|
||||
any.validity-scientific ==0.2.0.3,
|
||||
any.vector ==0.13.0.0,
|
||||
vector +boundschecks -internalchecks -unsafechecks -wall,
|
||||
any.vector-stream ==0.1.0.0,
|
||||
any.witherable ==0.4.2,
|
||||
any.wl-pprint-annotated ==0.1.0.1
|
||||
index-state: hackage.haskell.org 2023-01-20T14:45:46Z
|
@ -1,4 +0,0 @@
|
||||
with-compiler: ghc-9.2.5
|
||||
|
||||
package graphql-parser
|
||||
ghc-options: -Werror
|
@ -1 +0,0 @@
|
||||
../cabal.project
|
@ -1,138 +0,0 @@
|
||||
active-repositories: hackage.haskell.org:merge
|
||||
constraints: any.OneTuple ==0.3.1,
|
||||
any.QuickCheck ==2.14.2,
|
||||
QuickCheck -old-random +templatehaskell,
|
||||
any.StateVar ==1.2.2,
|
||||
any.aeson ==2.1.1.0,
|
||||
aeson -cffi +ordered-keymap,
|
||||
any.ansi-terminal ==0.11.3,
|
||||
ansi-terminal -example,
|
||||
any.ansi-wl-pprint ==0.6.9,
|
||||
ansi-wl-pprint -example,
|
||||
any.array ==0.5.4.0,
|
||||
any.assoc ==1.0.2,
|
||||
any.async ==2.2.4,
|
||||
async -bench,
|
||||
any.attoparsec ==0.14.4,
|
||||
attoparsec -developer,
|
||||
any.autodocodec ==0.2.0.1,
|
||||
any.barbies ==2.0.3.1,
|
||||
any.base ==4.16.4.0,
|
||||
any.base-compat ==0.12.2,
|
||||
any.base-compat-batteries ==0.12.2,
|
||||
any.base-orphans ==0.8.7,
|
||||
any.bifunctors ==5.5.13,
|
||||
bifunctors +semigroups +tagged,
|
||||
any.binary ==0.8.9.0,
|
||||
any.bytestring ==0.11.3.1,
|
||||
any.clock ==0.8.3,
|
||||
clock -llvm,
|
||||
any.colour ==2.3.6,
|
||||
any.comonad ==5.0.8,
|
||||
comonad +containers +distributive +indexed-traversable,
|
||||
any.concurrent-output ==1.10.16,
|
||||
any.constraints ==0.13.4,
|
||||
any.containers ==0.6.5.1,
|
||||
any.contravariant ==1.5.5,
|
||||
contravariant +semigroups +statevar +tagged,
|
||||
any.data-fix ==0.3.2,
|
||||
any.deepseq ==1.4.6.1,
|
||||
any.deferred-folds ==0.9.18.2,
|
||||
any.directory ==1.3.6.2,
|
||||
any.distributive ==0.6.2.1,
|
||||
distributive +semigroups +tagged,
|
||||
any.dlist ==1.0,
|
||||
dlist -werror,
|
||||
any.erf ==2.0.0.0,
|
||||
any.exceptions ==0.10.4,
|
||||
any.filepath ==1.4.2.2,
|
||||
any.foldl ==1.4.12,
|
||||
any.generically ==0.1,
|
||||
any.ghc-bignum ==1.2,
|
||||
any.ghc-boot-th ==9.2.5,
|
||||
any.ghc-prim ==0.8.0,
|
||||
any.happy ==1.20.0,
|
||||
any.hashable ==1.4.1.0,
|
||||
hashable +containers +integer-gmp -random-initial-seed,
|
||||
any.haskell-lexer ==1.1,
|
||||
any.hedgehog ==1.2,
|
||||
any.hsc2hs ==0.68.8,
|
||||
hsc2hs -in-ghc-tree,
|
||||
any.indexed-traversable ==0.1.2,
|
||||
any.indexed-traversable-instances ==0.1.1.1,
|
||||
any.integer-logarithms ==1.0.3.1,
|
||||
integer-logarithms -check-bounds +integer-gmp,
|
||||
any.isomorphism-class ==0.1.0.7,
|
||||
any.lifted-async ==0.10.2.3,
|
||||
any.lifted-base ==0.2.3.12,
|
||||
any.mmorph ==1.2.0,
|
||||
any.monad-control ==1.0.3.1,
|
||||
any.mtl ==2.2.2,
|
||||
any.optparse-applicative ==0.17.0.0,
|
||||
optparse-applicative +process,
|
||||
any.pretty ==1.1.3.6,
|
||||
any.pretty-show ==1.10,
|
||||
any.prettyprinter ==1.7.1,
|
||||
prettyprinter -buildreadme +text,
|
||||
any.primitive ==0.7.4.0,
|
||||
any.process ==1.6.16.0,
|
||||
any.profunctors ==5.6.2,
|
||||
any.random ==1.2.1.1,
|
||||
any.resourcet ==1.2.6,
|
||||
any.rts ==1.0.2,
|
||||
any.scientific ==0.3.7.0,
|
||||
scientific -bytestring-builder -integer-simple,
|
||||
any.semialign ==1.2.0.1,
|
||||
semialign +semigroupoids,
|
||||
any.semigroupoids ==5.3.7,
|
||||
semigroupoids +comonad +containers +contravariant +distributive +tagged +unordered-containers,
|
||||
any.split ==0.2.3.5,
|
||||
any.splitmix ==0.1.0.4,
|
||||
splitmix -optimised-mixer,
|
||||
any.stm ==2.5.0.2,
|
||||
any.strict ==0.4.0.1,
|
||||
strict +assoc,
|
||||
any.tagged ==0.8.6.1,
|
||||
tagged +deepseq +transformers,
|
||||
any.tasty ==1.4.2.3,
|
||||
tasty +clock +unix,
|
||||
any.tasty-bench ==0.3.2,
|
||||
tasty-bench -debug +tasty,
|
||||
any.template-haskell ==2.18.0.0,
|
||||
any.terminal-size ==0.3.3,
|
||||
any.text ==1.2.5.0,
|
||||
any.text-builder ==0.6.7,
|
||||
any.text-builder-dev ==0.3.3,
|
||||
any.text-short ==0.1.5,
|
||||
text-short -asserts,
|
||||
any.th-abstraction ==0.4.5.0,
|
||||
any.th-compat ==0.1.4,
|
||||
any.th-lift ==0.8.2,
|
||||
any.th-lift-instances ==0.1.20,
|
||||
any.these ==1.1.1.1,
|
||||
these +assoc,
|
||||
any.time ==1.11.1.1,
|
||||
any.time-compat ==1.9.6.1,
|
||||
time-compat -old-locale,
|
||||
any.transformers ==0.5.6.2,
|
||||
any.transformers-base ==0.4.6,
|
||||
transformers-base +orphaninstances,
|
||||
any.transformers-compat ==0.7.2,
|
||||
transformers-compat -five +five-three -four +generic-deriving +mtl -three -two,
|
||||
any.type-equality ==1,
|
||||
any.unbounded-delays ==0.1.1.1,
|
||||
any.unix ==2.7.2.2,
|
||||
any.unliftio-core ==0.2.0.1,
|
||||
any.unordered-containers ==0.2.19.1,
|
||||
unordered-containers -debug,
|
||||
any.uuid-types ==1.0.5,
|
||||
any.validity ==0.12.0.1,
|
||||
any.validity-scientific ==0.2.0.3,
|
||||
any.vector ==0.13.0.0,
|
||||
vector +boundschecks -internalchecks -unsafechecks -wall,
|
||||
any.vector-stream ==0.1.0.0,
|
||||
any.wcwidth ==0.0.2,
|
||||
wcwidth -cli +split-base,
|
||||
any.witherable ==0.4.2,
|
||||
any.wl-pprint-annotated ==0.1.0.1
|
||||
index-state: hackage.haskell.org 2022-11-15T13:48:19Z
|
@ -1,7 +0,0 @@
|
||||
with-compiler: ghc-9.2.5
|
||||
|
||||
allow-newer:
|
||||
weeder:optparse-applicative
|
||||
|
||||
package *
|
||||
optimization: 0
|
@ -1,8 +0,0 @@
|
||||
{ roots =
|
||||
[ "Language.GraphQL.Draft.Generator"
|
||||
, "Language.GraphQL.Draft.Parser"
|
||||
, "Language.GraphQL.Draft.Printer"
|
||||
, "Language.GraphQL.Draft.Syntax"
|
||||
]
|
||||
, type-class-roots = False
|
||||
}
|
24
server/lib/pg-client/.gitignore
vendored
24
server/lib/pg-client/.gitignore
vendored
@ -1,24 +0,0 @@
|
||||
# Created by https://www.gitignore.io/api/haskell
|
||||
|
||||
### Haskell ###
|
||||
dist
|
||||
dist-*
|
||||
cabal-dev
|
||||
*.o
|
||||
*.hi
|
||||
*.chi
|
||||
*.chs.h
|
||||
*.dyn_o
|
||||
*.dyn_hi
|
||||
.hpc
|
||||
.hsenv
|
||||
.cabal-sandbox/
|
||||
cabal.sandbox.config
|
||||
*.prof
|
||||
*.aux
|
||||
*.hp
|
||||
*.eventlog
|
||||
.stack-work/
|
||||
|
||||
ws/
|
||||
TAGS
|
@ -1,9 +0,0 @@
|
||||
packages: .
|
||||
|
||||
package *
|
||||
ghc-options: -fwrite-ide-info
|
||||
|
||||
source-repository-package
|
||||
type: git
|
||||
location: https://github.com/hasura/pool.git
|
||||
tag: c5faf9a358e83eaf15fef0c1e890f463d0022565
|
@ -1 +0,0 @@
|
||||
../cabal.project
|
@ -1 +0,0 @@
|
||||
../cabal.project
|
@ -1,6 +0,0 @@
|
||||
resolver: lts-17.15
|
||||
packages:
|
||||
- .
|
||||
extra-deps:
|
||||
- git: https://github.com/hasura/pool.git
|
||||
commit: bc4c3f739a8fb8ec4444336a34662895831c9acf
|
@ -1,23 +0,0 @@
|
||||
# This file was autogenerated by Stack.
|
||||
# You should not edit this file by hand.
|
||||
# For more information, please see the documentation at:
|
||||
# https://docs.haskellstack.org/en/stable/lock_files
|
||||
|
||||
packages:
|
||||
- completed:
|
||||
name: resource-pool
|
||||
version: 0.2.3.2
|
||||
git: https://github.com/hasura/pool.git
|
||||
pantry-tree:
|
||||
size: 414
|
||||
sha256: 7561aad88cc30834abc16518e64f363076b3648c888da1763763380dda7189aa
|
||||
commit: bc4c3f739a8fb8ec4444336a34662895831c9acf
|
||||
original:
|
||||
git: https://github.com/hasura/pool.git
|
||||
commit: bc4c3f739a8fb8ec4444336a34662895831c9acf
|
||||
snapshots:
|
||||
- completed:
|
||||
size: 567679
|
||||
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/17/15.yaml
|
||||
sha256: 72e87841a0ab5b72f6f018e8ee692fd972b7bb32a944990f028e10d6eb528e63
|
||||
original: lts-17.15
|
@ -1,5 +0,0 @@
|
||||
{ roots =
|
||||
[ "Database.PG.Query"
|
||||
]
|
||||
, type-class-roots = True
|
||||
}
|
48
weeder.dhall
48
weeder.dhall
@ -1,48 +0,0 @@
|
||||
{ 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.*"
|
||||
|
||||
, "^Data.Aeson.Ordered.*"
|
||||
, "^Data.HashMap.Strict.Multi.*"
|
||||
, "^Data.HashMap.Strict.NonEmpty.*"
|
||||
, "^Data.Text.Casing.*"
|
||||
, "^Data.Text.Extended.*"
|
||||
, "^Data.Trie.*"
|
||||
|
||||
, "^Database.MSSQL.Transaction.*"
|
||||
|
||||
-- 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$"
|
||||
|
||||
-- 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$"
|
||||
]
|
||||
|
||||
, type-class-roots = True
|
||||
}
|
Loading…
Reference in New Issue
Block a user