Saurabh Nanda

Results 231 comments of Saurabh Nanda

My vote for this, because I've been conditioned by ORM to accept polymorphic records. But, as a newbie, I hated them.

Should I attempt a PR? On Wed, 22 Jan 2020, 03:51 John Wiegley, wrote: > I like your thinking here. Eagerly evaluating the requested tasks into > async jobs before...

@jappeace @ivb-supercede shall we wait for https://github.com/saurabhnanda/odd-jobs/pull/92 to be merged? Or shall we cut a public release?

Just got bitten by this. Is the `Default` instance (or is it `QueryRunnerColumnDefault`?) absent because there's no real consensus on *what* PGNumeric should map to on the Haskell side?

Will submit a PR after getting it to work in our app.

So, we need **both** instances, right? `Default` AND `QueryRunnerColumnDefault`?

which [`HPQ.Literal`](https://www.stackage.org/haddock/lts-7.14/opaleye-0.5.2.2/src/Opaleye.Internal.HaskellDB.PrimQuery.html#Literal) should I be using to complete the following: ``` pgRatioToNumeric :: Ratio Integer -> Column PGNumeric pgRatioToNumeric r = undefined instance ProDef.Default Constant (Ratio Integer) (Column PGNumeric) where...

I've gotten it to work with the following, but I'm not happy: ``` instance QueryRunnerColumnDefault PGNumeric (Ratio Integer) where queryRunnerColumnDefault = fieldQueryRunnerColumn pgRatioToNumeric :: Ratio Integer -> Column PGNumeric pgRatioToNumeric...

@tomjaguarpaw one last question before you go :) Is this error related? ``` convertAmountToINR :: Query PaymentPGRead -> Query PaymentPGRead convertAmountToINR payQuery = proc () -> do p

We've got **a** version working in our project, but it's not correct. Creating a Decimal requires the knowledge of a precision, IIRC. ``` instance FromField Decimal where fromField field maybebs...