feat[classfile]: PrettySerialize instances
only a little bit broken formatting
This commit is contained in:
parent
b82ce2646b
commit
5e6736e8da
20 changed files with 108 additions and 45 deletions
|
@ -8,9 +8,10 @@ import Data.Word (Word16)
|
|||
import Language.Java.Classfile.ConstantPool.References (ClassReference)
|
||||
import Language.Java.Classfile.Extractable (Extractable)
|
||||
import GHC.Generics ( Generic, Generically, Generically(..) )
|
||||
import Pretty.Serialize (PrettySerialize)
|
||||
|
||||
-- | A list of classes something implements.
|
||||
|
||||
newtype Interfaces = Interfaces (Array Word16 ClassReference)
|
||||
deriving stock (Show, Generic)
|
||||
deriving Extractable via Generically Interfaces
|
||||
deriving (Extractable, PrettySerialize) via Generically Interfaces
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue