profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/basvandijk/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Bas van Dijk basvandijk DFINITY Zürich, Switzerland http://haskellers.com/user/basvandijk I've 15 years of experience as a Haskell developer in various roles.

basvandijk/case-insensitive 24

Case insensitive string comparison

basvandijk/concurrent-extra 15

Extra concurrency primitives

basvandijk/bindings-libusb 4

Low level bindings to libusb

basvandijk/aws 3

Amazon Web Services for Haskell

basvandijk/bench-monad-peel-control 3

Benchmark monad-peel and monad-control

basvandijk/bench-queues 2

Compare miso's queue agains a TQueue

basvandijk/bindings-levmar 2

Low level Haskell bindings to the C levmar (Levenberg-Marquardt) library

basvandijk/case-insensitive-bench 2

Criterion benchmarks for case-insensitive

basvandijk/.emacs.d 1

My emacs configuration

basvandijk/aeson 1

A fast Haskell JSON library

PullRequestReviewEvent

PR opened tomjaguarpaw/haskell-opaleye

Provide 'Default ToFields' and DefaultFromField instances for Aeson

WIP

This allows converting from any Haskell type that has a From/ToJSON instance to PostgreSQL's json[b] type and visa versa.

+14 -0

0 comment

2 changed files

pr created time in a month

create barnchbasvandijk/haskell-opaleye

branch : polymorphic-json

created branch time in a month

issue openedhoneycombio/honeytail

API key is leaked via process tree

Description

honeytail accepts the API_KEY via a command line argument: --writekey=API_KEY. This means the key will show up in the process tree allowing any user on the system to see that key.

Could honeytail be extended with accepting the API_KEY via an environment variable or via a file? That way the key can be hidden from other users.

created time in a month

fork basvandijk/amazonka

A comprehensive Amazon Web Services SDK for Haskell.

fork in a month

pull request commenttomjaguarpaw/haskell-opaleye

Add support for interval types and + and - operations

Thanks for the review @tomjaguarpaw. I agree with all your comments and I've addressed them. Could you do another review?

basvandijk

comment created time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha d2ddb00ece4807519bf4805c358a1c4449a11a1d

Address PR review comments

view details

push time in 2 months

Pull request review commenttomjaguarpaw/haskell-opaleye

Add support for interval types and + and - operations

 timestamptzAtTimeZone = C.binOp HPQ.OpAtTimeZone dateOfTimestamp :: F.Field T.SqlTimestamp -> F.Field T.SqlDate dateOfTimestamp (Column e) = Column (HPQ.FunExpr "date" [e]) +-- | @IntervalNum from to@ determines from which date or time types an interval+-- can be added ('addInterval') or subtracted ('minusInterval`) and which is the+-- resulting type.+--+-- The instances should correspond to the interval + and - operations listed in:+--+-- https://www.postgresql.org/docs/current/functions-datetime.html#OPERATORS-DATETIME-TABLE+class IntervalNum from to

Initially I thought we could have arbitrary combinations but thinking about it again I think it makes sense to add a fundep here. Will do.

basvandijk

comment created time in 2 months

PullRequestReviewEvent

issue commentbos/pool

New maintainers?

@jonathanjouty @arybczak you're both new maintainers of resouce-pool. I hope you do a better job maintaining the package than I did.

BTW I recently started a project in which I'm using resource-pool so I've a renewed interest in the future of this package and would also help out maintaining it.

jonathanjouty

comment created time in 2 months

issue commentbos/pool

New maintainers?

Hi @jonathanjouty, sorry for the much too late response. GitHub notifications escape my attention too much these days.

I'm happy to add you as a maintainer on Hackage!

jonathanjouty

comment created time in 2 months

issue commenttomjaguarpaw/haskell-opaleye

How to add intervals to dates?

@tomjaguarpaw, @ablygo #519 is ready for review.

ablygo

comment created time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha 005c2e93d02ac2022e257f874e9b5a8875441ba8

Add support for interval types and + and - operations This adds the `SqlInterval` type matching PostgreSQL's `interval` type. `SqlInterval` can be converted to Haskell's `CalendarDiffTime` type. The operations `addInterval` and `minusInterval` have been added: ``` addInterval, minusInterval :: IntervalNum from to => F.Field from -> F.Field T.SqlInterval -> F.Field to ``` They add or subtract an interval from various date and time types. Which types are allowed to add or subtract an interval from and which type is the resulting type is determined by the: ``` class IntervalNum from to instance IntervalNum T.SqlDate T.SqlTimestamp instance IntervalNum T.SqlInterval T.SqlInterval instance IntervalNum T.SqlTimestamp T.SqlTimestamp instance IntervalNum T.SqlTimestamptz T.SqlTimestamptz instance IntervalNum T.SqlTime T.SqlTime ``` Simple test cases have been added to test these operations.

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha eaefd19b20a84051b6a9bb927dcae9904fa38978

Add support for interval types and + and - operations This adds the 'SqlInterval' type matching PostgreSQL's 'interval' type. `SqlInterval` can be converted to Haskell's `CalendarDiffTime` type. The operations `addInterval` and `minusInterval` have been added: ``` addInterval, minusInterval :: IntervalNum from to => F.Field from -> F.Field T.SqlInterval -> F.Field to ``` They add or subtract an interval from various date and time types. Which types are allowed to add or subtract an interval from and which type is the resulting type is determined by the: ``` class IntervalNum from to instance IntervalNum T.SqlDate T.SqlTimestamp instance IntervalNum T.SqlInterval T.SqlInterval instance IntervalNum T.SqlTimestamp T.SqlTimestamp instance IntervalNum T.SqlTimestamptz T.SqlTimestamptz instance IntervalNum T.SqlTime T.SqlTime ``` Simple test cases have been added to test these operations.

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha 55e3302f4f26dbe114efcf38df026bf58214a062

Test: changed order to match IntervalNum instances

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha e21c7601e091c37531122df9efae387744e9a59c

Add testAddIntervalFromTimestampToTimestamp

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha 3d1f66bbb88890848fb8cd167326f8435b8ef967

Remove instance IntervalNum SqlDate SqlTimestamptz

view details

Bas van Dijk

commit sha 7468e723ce83dbb5213492fea757809cd2b0c8d9

testAddIntervalFromTimeToTime: intervals larger than a day are a bit tricky

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha 0a7019fc93d634db5ea2d71f7a13573b8d473408

Fix

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha df7ee798ccc20a24c6440d126a46ac72843f9893

More explicit types in testAddIntervalFromTimeToTime

view details

Bas van Dijk

commit sha b69626b13cd2fdfa3330f09c7086fb068e08e8f9

More interesting interval in testAddIntervalFromTimeToTime

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha 80b85d09620bd9c5dc97b4da35658d6c6cbd3835

Add testAddIntervalFromTimeToTime

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha 83520a812b118682b67b1bc6c60445112eecd99b

Add testAddIntervalFromDateToTimestamptz

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha cad0977a52bc0edfd51e3db4bf70ee6a55a5e022

Fix test

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha 53e21de4ac3decc22ccfc59a7781c4016c2ac110

Add testAddIntervalFromIntervalToInterval

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha ac30779afda6e5311f57d591928d4e00223903c0

Set the intervalstyle to iso_8601 as required by postgresql-simple

view details

Bas van Dijk

commit sha ef1a86c5caac8056760f8f4601f7a7df2f0b6ff7

Test: fix deprecation warning on the use of constant

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha 32de710415ed4418e5309c64dcc595ef85405b11

Use time-compat in the test suite as well

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha 220719eee2873bbb16476facdbd92204d4a615df

Add initial test for adding an intetval to a timestamptz

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha 91bf18e97b44abbdf9a1ad629659ff6653d832e5

Support more IntervalNum combinations

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha fd1ba798a61b7b87f83e75d0d0460f91f730b4a3

Use ++ instead of <> to support older GHCs

view details

push time in 2 months

push eventbasvandijk/haskell-opaleye

Bas van Dijk

commit sha 778557f4c5f1409e0154b385d8da409d29f68ed2

Replaced time package with time-compat to support older GHCs

view details

push time in 2 months

issue commenttomjaguarpaw/haskell-opaleye

How to add intervals to dates?

I also need support for intervals so I'm working on a PR that adds an Interval type to opaleye and associated polymorphic addInterval and minusInterval operations.

ablygo

comment created time in 2 months