scalaz/scalaz — pull request #66 by larsrh (2012-01-22 17:36:29+00:00)
Title: Type-safe printf

Here's the code for the promised implementation of a type-safe `printf`. With this pull request, all major features which we planned for the `typelevel` subproject are implemented.

The `printf` is based on our `HList` and on union types to resemble Java-like usage. Internally, it delegates formatting to Scala's `format` (which uses Java's `format`). We tried to provide a complete API, but are happy to implement more on request.

There might be some rough edges (i. e. exotic combinations of parameters) which we couldn't test, so please report any exceptions/wrong outputs/...

(Note: This pull request is intentionally independent from #63.)