Resolving dependencies... [1 of 1] Compiling Main ( /tmp/cabal-tmp-6074/SDL-0.5.1/dist/setup/setup.hs, /tmp/cabal-tmp-6074/SDL-0.5.1/dist/setup/Main.o ) /tmp/cabal-tmp-6074/SDL-0.5.1/dist/setup/setup.hs:5:31: Warning: In the use of ‘defaultUserHooks’ (imported from Distribution.Simple): Deprecated: "Use simpleUserHooks or autoconfUserHooks, unless you need Cabal-1.2 compatibility in which case you must stick with defaultUserHooks" Linking /tmp/cabal-tmp-6074/SDL-0.5.1/dist/setup/setup ... Warning: defaultUserHooks in Setup script is deprecated. Configuring SDL-0.5.1... Warning: No 'build-type' specified. If you do not need a custom Setup.hs or ./configure script then use 'build-type: Simple'. configure: error: cannot find sources (includes/HsSDLConfig.h.in) in . or .. Failed to install SDL-0.5.1 cabal: Error: some packages failed to install: SDL-0.5.1 failed during the configure step. The exception was: ExitFailure 1