*** setup configure setup/setup configure --ghc --user --prefix=/usr/local/tmp/archive/install --haddock-option=--use-contents=http://hackage.haskell.org/cgi-bin/hackage-scripts/package/AppleScript-0.1.3 --verbose Configuring AppleScript-0.1.3... Warning: No 'build-type' specified. If you do not need a custom Setup.hs or ./configure script then use 'build-type: Simple'. Warning: Instead of 'ghc-options: -ffi' use 'extensions: ForeignFunctionInterface' Dependency base -any: using base-4.1.0.0 Using Cabal-1.6.0.1 compiled by ghc-6.10 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/AppleScript-0.1.3/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/AppleScript-0.1.3 Documentation installed in: /usr/local/tmp/archive/install/share/doc/AppleScript-0.1.3 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.15.1 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.3 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg No greencard found Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build setup/setup build --verbose Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library AppleScript-0.1.3... Building AppleScript-0.1.3... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc -package-name AppleScript-0.1.3 --make -hide-all-packages -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -Icbits -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package base-4.1.0.0 -O -ffi -XCPP -XForeignFunctionInterface Foreign.AppleScript on the commandline: Warning: -ffi is deprecated: use -XForeignFunctionInterface or pragma {-# LANGUAGE ForeignFunctionInterface#-} instead [1 of 1] Compiling Foreign.AppleScript ( Foreign/AppleScript.hs, dist/build/Foreign/AppleScript.o ) Building C Sources... Creating dist/build (and its parents) /usr/local/bin/ghc -Icbits -package base-4.1.0.0 -optc-O2 -odir dist/build -c cbits/RunScript.c cbits/RunScript.c:1:27: error: Carbon/Carbon.h: No such file or directory In file included from cbits/RunScript.c:3:0: cbits/RunScript.h:14:19: error: Types.h: No such file or directory cbits/RunScript.h:15:25: error: AppleEvents.h: No such file or directory In file included from cbits/RunScript.c:3:0: cbits/RunScript.h:26:0: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AppleScriptAvailable' cbits/RunScript.h:38:0: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'LowRunAppleScript' cbits/RunScript.c:7:17: error: OSA.h: No such file or directory cbits/RunScript.c:8:25: error: AppleScript.h: No such file or directory cbits/RunScript.c:9:21: error: Gestalt.h: No such file or directory cbits/RunScript.c:18:0: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AppleScriptAvailable' cbits/RunScript.c:34:0: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'LowRunAppleScript' *** Trying again with preferred-versions *** setup configure setup/setup configure --ghc --user --prefix=/usr/local/tmp/archive/install --haddock-option=--use-contents=http://hackage.haskell.org/cgi-bin/hackage-scripts/package/AppleScript-0.1.3 --constraint=base<4 --constraint=parsec<3 --constraint=HaXml==1.13.* --constraint=QuickCheck<2 --verbose Configuring AppleScript-0.1.3... Warning: No 'build-type' specified. If you do not need a custom Setup.hs or ./configure script then use 'build-type: Simple'. Warning: Instead of 'ghc-options: -ffi' use 'extensions: ForeignFunctionInterface' Dependency base -any && <4: using base-3.0.3.1 Using Cabal-1.6.0.1 compiled by ghc-6.10 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/AppleScript-0.1.3/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/AppleScript-0.1.3 Documentation installed in: /usr/local/tmp/archive/install/share/doc/AppleScript-0.1.3 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.15.1 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.3 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg No greencard found Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar *** setup build setup/setup build --verbose Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing library AppleScript-0.1.3... Building AppleScript-0.1.3... Building library... Creating dist/build (and its parents) /usr/local/bin/ghc -package-name AppleScript-0.1.3 --make -hide-all-packages -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -Icbits -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package base-3.0.3.1 -O -ffi -XCPP -XForeignFunctionInterface Foreign.AppleScript on the commandline: Warning: -ffi is deprecated: use -XForeignFunctionInterface or pragma {-# LANGUAGE ForeignFunctionInterface#-} instead [1 of 1] Compiling Foreign.AppleScript ( Foreign/AppleScript.hs, dist/build/Foreign/AppleScript.o ) Building C Sources... Creating dist/build (and its parents) /usr/local/bin/ghc -Icbits -package base-3.0.3.1 -optc-O2 -odir dist/build -c cbits/RunScript.c cbits/RunScript.c:1:27: error: Carbon/Carbon.h: No such file or directory In file included from cbits/RunScript.c:3:0: cbits/RunScript.h:14:19: error: Types.h: No such file or directory cbits/RunScript.h:15:25: error: AppleEvents.h: No such file or directory In file included from cbits/RunScript.c:3:0: cbits/RunScript.h:26:0: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AppleScriptAvailable' cbits/RunScript.h:38:0: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'LowRunAppleScript' cbits/RunScript.c:7:17: error: OSA.h: No such file or directory cbits/RunScript.c:8:25: error: AppleScript.h: No such file or directory cbits/RunScript.c:9:21: error: Gestalt.h: No such file or directory cbits/RunScript.c:18:0: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AppleScriptAvailable' cbits/RunScript.c:34:0: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'LowRunAppleScript'