feat: monad instance, some classfile constant-pool parsing
This commit is contained in:
parent
a4b5b06000
commit
f504462d3c
13 changed files with 153 additions and 6 deletions
11
src/Language/Java/Classfile/ConstantPool.hs
Normal file
11
src/Language/Java/Classfile/ConstantPool.hs
Normal file
|
@ -0,0 +1,11 @@
|
|||
{-# LANGUAGE DerivingStrategies #-}
|
||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
||||
module Language.Java.Classfile.ConstantPool (ConstantPool(..)) where
|
||||
import Data.Word (Word16)
|
||||
import Data.Array.IArray (Array)
|
||||
import Language.Java.Classfile.ConstantPool.Entry (Entry)
|
||||
import Language.Java.Classfile.Extractable (Extractable)
|
||||
|
||||
newtype ConstantPool = ConstantPool (Array Word16 Entry)
|
||||
deriving stock (Show)
|
||||
deriving newtype Extractable
|
Loading…
Add table
Add a link
Reference in a new issue