-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switch postgrest configurator-ng to dhall configure for latest ghc build #1292
Comments
Thank you for the suggestion. Do you know if there's a way for dhall to accept our current configuration syntax(without curly brackets and commas)? |
While I don't object at all to moving away from It's unclear to me whether those will make it to hackage anytime soon though. EDIT: As a way to move forward here: #1305 |
I fully support the move to @steve-chavez I think the conversion from currents This would also simplify configuration code-wise. The example from @clojurians-org already simplifies the |
Unless dhall can support the exact config format @robx has the right approach, fix upstream. Maintainers should be contacted over email and asked respectfully to merge (when they like the code) the pr and if they are willing, until the change makes it into hackage, postgrest should use directly the branches with the fixes. There is no need for complex configuration capabilities, having a simple configuration file is a goal for postgrest to have and it does not get any simpler the key=value and its a format everyone knows and understands as opposed to dhall |
I agree that fixing upstream should be the approach to take to fix this issue. Contacting the maintainers and use the fixed branch in the meantime. I disagree with you, because the configuration file PostgREST uses, obeys a few more rules than simply My opinion as a developer is that it is a harder change, because it would involve updating a number of dependencies and adding several more tests. It would be nice, because we could get rid of quite a bit of code, especially one so error prone, that's arguably mostly unrelated to PostgREST itself. Mostly that. |
Really interesting podcast about dhall: https://www.se-radio.net/2019/08/episode-375-gabriel-gonzalez-on-configuration |
the depends on configurator-ng(and it's further depend on critbit) is too old to adapt to new ghc environment.
it's only used for simple config parser function.
i currently try to use nix to build static build for postgrest, there's a little problem to solve.
but dynamic build is relative easy on postgrest for latest GHC after adopting dhall instead of configurator-ng. (the Ranged-sets can be upgrade to RELEASE-0.4.0 version)
a simple build scratch version:
https://github.com/clojurians-org/nix-haskell-build/blob/master/postgrest/src/PostgREST/Config.hs
The text was updated successfully, but these errors were encountered: