News for hackers. Stuff that matters.
Re:Your test suite is trying to tell you something by njs12345 on Wednesday July 03, 2013 @12:40PM (#5985712)
Have you seen the dimensional library? It's a slightly abusive use of the type system, but will check units at compile time. See e.g. http://code.google.com/p/dimensional/wiki/GMExample
Re:Your test suite is trying to tell you something by dllthomas on Wednesday July 03, 2013 @12:52PM (#5985816)
I think so; I've seen similar things, for sure. Obviously Haskell does have the ability to make this distinction; just (unfortunately) it's somewhat incompatible with the standard prelude, and thus common practice.