After switching to the new Haskell Platform (2014) Hdis86 does not compile properly anymore.
My guess is that some refactoring in the Haskell codebase broke compatibility, but I'm unsure since I am still very new to Haskell. Details below:
Windows 7
Clean installation of the Haskell Platform (2014)
c:\projects>cabal install hdis86
Resolving dependencies...
Configuring hdis86-0.2...
Building hdis86-0.2...
Preprocessing library hdis86-0.2...
[1 of 8] Compiling Hdis86.C ( dist\build\Hdis86\C.hs, dist\build\Hdis86\C.o )
[2 of 8] Compiling Hdis86.Internal.Opcode ( Hdis86\Internal\Opcode.hs, dist\build\Hdis86\Internal\Opcode.o )
[3 of 8] Compiling Hdis86.Types ( Hdis86\Types.hs, dist\build\Hdis86\Types.o )
[4 of 8] Compiling Hdis86.Internal.Map ( Hdis86\Internal\Map.hs, dist\build\Hdis86\Internal\Map.o )
[5 of 8] Compiling Hdis86.IO ( Hdis86\IO.hs, dist\build\Hdis86\IO.o )
Hdis86\IO.hs:197:6: Not in scope: `unsafeForeignPtrToPtr'
Failed to install hdis86-0.2
cabal: Error: some packages failed to install:
hdis86-0.2 failed during the building phase. The exception was:
ExitFailure 1
I also use hdis86 (thanks for making this possible) and I also bumped into this error.
It would be nice to have a new release of hdis86 at hackage.haskell.org with this issue fixed.
After switching to the new Haskell Platform (2014) Hdis86 does not compile properly anymore. My guess is that some refactoring in the Haskell codebase broke compatibility, but I'm unsure since I am still very new to Haskell. Details below:
Windows 7 Clean installation of the Haskell Platform (2014)
c:\projects>cabal install hdis86 Resolving dependencies... Configuring hdis86-0.2... Building hdis86-0.2... Preprocessing library hdis86-0.2... [1 of 8] Compiling Hdis86.C ( dist\build\Hdis86\C.hs, dist\build\Hdis86\C.o ) [2 of 8] Compiling Hdis86.Internal.Opcode ( Hdis86\Internal\Opcode.hs, dist\build\Hdis86\Internal\Opcode.o ) [3 of 8] Compiling Hdis86.Types ( Hdis86\Types.hs, dist\build\Hdis86\Types.o ) [4 of 8] Compiling Hdis86.Internal.Map ( Hdis86\Internal\Map.hs, dist\build\Hdis86\Internal\Map.o ) [5 of 8] Compiling Hdis86.IO ( Hdis86\IO.hs, dist\build\Hdis86\IO.o )
Hdis86\IO.hs:197:6: Not in scope: `unsafeForeignPtrToPtr' Failed to install hdis86-0.2 cabal: Error: some packages failed to install: hdis86-0.2 failed during the building phase. The exception was: ExitFailure 1