Snap on DragonflyBSD

I have a service1 that uses the Haskell-based Snap framework2. It compiled fine on DragonflyBSD, but I ran into runtime errors due to a failing call to getAddrInfo. This turned out to be because Snap tries to get info about a socket without specifying that the socket is a stream socket. It turned out a solution had been posted to github like 8 months ago and not merged upstream.

I submitted a pull-request and the issue is now fixed in snap-server 0.9.5.1. Someone on the Snap team merged it and got the new version on hackage in less than a day, which is some pretty impressive responsiveness.

Since DragonflyBSD is a FreeBSD fork, I wouldn’t be surprised if this issue existed and is now fixed on FreeBSD as well.


  1. http://devotter.com [return]
  2. https://github.com/snapframework/snap [return]