a Haskell logic gate simulator, using a simple input file format