Greg Hale
Greg Hale
Groundhog's encoding of foreign keys makes relationships between tables typesafe; the price to pay is yaml parsing (which depends on a c library), code generation with template haskell, and injecting...
With new type for `withConn :: (conn -> m a) -> conn -> m a`, I'm confused about how to write a `ConnectionManager` instance for snap that defers to the...
I like how TH-derived automatically incremented int keys free me from having to put any kind of primary key directly in my type, since often the key has nothing to...
Hello! I've been using `sqlx` to talk to CockroachDB databases and recently started an upgrade from `sqlx-0.3.5` to `sqlx-0.4.2`. After upgrading, many tests began to fail with ``` PgDatabaseError {...
This addresses #1047 by adding a `-error-on-missing-key` CLI argument, which applies to all templates rendered in the current `consult-template` call, except for those that individually override it the template's configuration....
Proof of concept phash ETL job (https://github.com/propublica/facebook-political-ads/issues/74) This adds data to a `phash` column in the `ads` table, with the perceptual hash of each image in the ad. A prereq...
There's a convention that suggests avoiding Generic aeson instances because we more commonly (a) add JSON instances to Haskell types used in business logic, and less commonly (b) create a...
This is a rebase of #167 n.b. I haven't done any testing.
Hello! I've tried bumping the spec3.json file to the most recent one provided by Stripe. Following your codegen instructions, there were surprisingly few issues. I did run into a few...
In ghc API 8.0, `xopt_set :: DynFlags -> Extension -> DynFlags`, where `Extension` type comes from `Language.Haskell.TH.LanguageExtensions`. The fix is simply - `s/Opt_ExtendedDefaultRules/TH.ExtendedDefaultRules` on line 27 - import `Language.Haskell.TH.LanguageExtensions` -...