Borys Lykah
Borys Lykah
Can you share the definitions?
Can you share the datatype definitions too? A gist that produces that error would be helpful.
The naming schema tried to create a field (GADT constructor) _pgHostField which is an invalid constructor name. I would suggest modifying the naming schema. There are many ways to make...
Good point. My comment was about names normalization in general. If this is a common case, a NamingStyle adjustment function would be handy. Do you think that stripping underscores is...
That's right. I am not sure though if this case is popular enough to be included into the TH module. Otherwise you could use this schema modification just for your...
The place where entityDef is used is at https://github.com/lykahb/groundhog/blob/master/groundhog/Database/Groundhog/Generic/PersistBackendHelpers.hs Those functions are in the Action monad. You can change them to a more general monad that has connection.
The PRs are welcome.
There is an example of logging https://github.com/lykahb/groundhog/blob/master/examples/monadIntegration.hs
That is a good idea - `MonadBaseControl` has always been hard to understand. I'd appreciate a PR replacing it.
Groundhog is not tied to YAML although now it is the standard way to use it. Function `mkPersist` needs just `PersistDefinitions`. You can pass it as just as a Haskell...