feat: interface list
This commit is contained in:
parent
10ca143163
commit
62b537a93f
5 changed files with 45 additions and 8 deletions
12
src/Language/Java/Classfile/Interfaces.hs
Normal file
12
src/Language/Java/Classfile/Interfaces.hs
Normal file
|
@ -0,0 +1,12 @@
|
|||
{-# LANGUAGE DeriveGeneric #-}
|
||||
{-# LANGUAGE DerivingVia #-}
|
||||
module Language.Java.Classfile.Interfaces (Interfaces(..)) where
|
||||
import Data.Array.IArray (Array)
|
||||
import Data.Word (Word16)
|
||||
import Language.Java.Classfile.ConstantPool.References (ClassReference)
|
||||
import Language.Java.Classfile.Extractable (Extractable)
|
||||
import GHC.Generics ( Generic, Generically, Generically(..) )
|
||||
|
||||
newtype Interfaces = Interfaces (Array Word16 ClassReference)
|
||||
deriving stock (Show, Generic)
|
||||
deriving Extractable via Generically Interfaces
|
Loading…
Add table
Add a link
Reference in a new issue