Minor updates.
authorIlya Portnov <portnov84@rambler.ru>
Mon, 13 Jun 2011 15:55:01 +0000 (21:55 +0600)
committerIlya Portnov <portnov84@rambler.ru>
Mon, 13 Jun 2011 15:55:01 +0000 (21:55 +0600)
JVM/ClassFile.hs
disassemble.hs

index 9546292b46613478418545e34e4dba5b4b7e7d4a..39df21a9f5beb6e786ec27fddebc68d7f516857e 100644 (file)
@@ -1,7 +1,16 @@
 {-# LANGUAGE RecordWildCards, BangPatterns #-}
 -- | This module declares (low-level) data types for Java .class files
 -- structures, and Binary instances to read/write them.
-module JVM.ClassFile where
+module JVM.ClassFile
+  (ClassFile (..),
+   CpInfo (..),
+   FieldInfo (..),
+   MethodInfo (..),
+   AttributeInfo (..),
+   FieldType,
+   FieldSignature, MethodSignature (..), ReturnSignature (..)
+  )
+  where
 
 import Control.Monad
 import Control.Applicative
index 619ef2c736d81a6d9dfd40ea311b55eda074d644..d4b9a1b5d9cb807c77098b6f03588d13c85b01b4 100644 (file)
@@ -23,7 +23,8 @@ main = do
       putStrLn "Methods:"
       forM_ (methods cls) $ \m -> do
         putStr ">> Method "
-        B.putStrLn (methodName m)
+        B.putStr (methodName m)
+        print (methodSignature m)
         case attrByName m "Code" of
           Nothing -> putStrLn "(no code)\n"
           Just bytecode -> let code = decodeS (0 :: Integer) bytecode