gist created by github.com/dscape/ghcopy