Skip to content

Instantly share code, notes, and snippets.

@jb55
Last active March 22, 2018 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jb55/c19868c269bd5d5a15142aec3dbeb7fe to your computer and use it in GitHub Desktop.
Save jb55/c19868c269bd5d5a15142aec3dbeb7fe to your computer and use it in GitHub Desktop.
#! /usr/bin/env nix-shell
#! nix-shell -i racket -p racket
#lang racket
(require racket/pretty)
(define (pretty-write-all)
(define next (read))
(when (not (eof-object? next))
(pretty-write next)
(pretty-write-all)))
(pretty-write-all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment