Skip to content

Instantly share code, notes, and snippets.

View ehoner's full-sized avatar

Eric Honer ehoner

  • San Francisco, CA
View GitHub Profile
@ehoner
ehoner / unparsers.scala
Created August 6, 2018 12:57
WIP: This is a translation of the examples in haskell to scala through section 4.2.
// script can be loaded by ammonite (http://ammonite.io/)
import $plugin.$ivy.`org.spire-math::kind-projector:0.9.6`
import $ivy.`org.scalaz::scalaz-core:7.2.25`
import scalaz._
import Scalaz._
import scalaz.Maybe.Just
import scala.language.higherKinds
@ehoner
ehoner / http4s.scala
Created July 20, 2018 00:21
Reproduction errors in http4s related to http4s/http4s/issues/1256. Requires running local web server, instructions and configuration for nginx are included.
/*
Reproduce errors for http4s. Some assembly is required. Most of this
can be done with brew. These instructions use nginx (webserver) with
the embedded configuration. Backup any existing nginx.conf.
NOTE: Test expects nginx to listent to port 80 - requires root privileges.
ie. $ sudo brew services restart nginx
#1 install nginx ($ brew install nginx)