Java Class File reader/writer written in haskell