binary files in haskell

Koen Claessen koen@cs.chalmers.se
Tue, 6 Feb 2001 13:56:59 +0100 (MET)


Marcin 'Qrczak' Kowalczyk wrote:

 | IMHO it looks nicer to have Byte in function names, so
 | there can be such type synonym too.

Style Warning!

Why do many people when designing libraries not make full
use of the Haskell module system? Instead of

  writeByte
  readByte

(or so), one could also say:

  Byte.write
  Byte.read

So that the context (Byte.) can be left out when
unambiguous, and one can just say:

  write
  read

/Koen.

--
Koen Claessen         http://www.cs.chalmers.se/~koen
phone:+46-31-772 5424      mailto:koen@cs.chalmers.se
-----------------------------------------------------
Chalmers University of Technology, Gothenburg, Sweden