GHC-7.8 has https://ghc.haskell.org/trac/ghc/ticket/7518 fixed, so the
byte code parser has to be adjusted. Fixes #1.
-- byte code instructions, disassembles them into a list of byte code instructions.
disassemble :: forall box. [box] -> [Word] -> ByteString -> [BCI box]
disassemble ptrs lits = runGet $ do
+#ifndef GHC_7_7
-- Ignore length tag. Needs to be skipped with GHC versions with
-- http://hackage.haskell.org/trac/ghc/ticket/7518 included
_ <- getWord16host
_ <- getWord16host
#endif
_n <- getWord16host
+#endif
nextInst
where
getLiteral :: Get Word