feat: monad instance, some classfile constant-pool parsing

This commit is contained in:
vegowotenks 2025-07-11 20:00:30 +02:00
parent a4b5b06000
commit f504462d3c
13 changed files with 153 additions and 6 deletions

View 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