mchakravarty / HaskellSpriteKit

Haskell binding to Apple's SpriteKit framework
Other
174 stars 8 forks source link

Building HaskellSpriteKit fails, Type Constructor or class not in scope #16

Open braedenf opened 6 years ago

braedenf commented 6 years ago

I am having a problem compiling the HaskellSprite kit in Xcode 9.1 with GHC v. 8.2.2. The error is placed below:

Showing Recent Messages
[ 8 of 14] Compiling Graphics.SpriteKit.Types ( Graphics/SpriteKit/Types.hs, /Users/braedenfoster/Library/Developer/Xcode/DerivedData/HaskellSpriteKit-ckqakbbckyvankhijtgdgqnstbxs/Build/Intermediates.noindex/SwiftMigration/HaskellSpriteKit/Intermediates.noindex/HaskellSpriteKit.build/Debug/HaskellSpriteKit.build/spritekit/build/Graphics/SpriteKit/Types.o )

Graphics/SpriteKit/Types.hs:395:19: error:

    Not in scope: type constructor or class ‘GHC.Any’

    Module ‘GHC.Prim’ does not export ‘Any’.

    |

395 | newtype Any = Any GHC.Any

    |                   ^^^^^^^

cabal: Leaving directory 'HaskellSpriteKit/spritekit'

cabal: Error: some packages failed to install:

spritekit-0.9.0.2-CQBFv3qNfz48eVFPtHanfT failed during the building phase. The

exception was:

ExitFailure 1

cabal install failed
mchakravarty commented 6 years ago

Thanks for the report. I haven't looked at compiling this with GHC 8.2 yet. Please let me know if you find a fix.