我尝试用堆栈编译Haskell direct-fastcgi包(setup-Simple-Cabal-1.18.1.5-ghc-7.8.4)并得到跟踪错误(见下文)。
是否与GHC 7.8.4存在兼容性问题?有人可以建议我如何解决它吗?提前谢谢。
Configuring direct-fastcgi-1.0.3...
Building direct-fastcgi-1.0.3...
Preprocessing library direct-fastcgi-1.0.3...
[1 of 1] Compiling Network.FastCGI ( Network/FastCGI.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Network/FastCGI.o )
Network/FastCGI.hs:248:16:
Not in scope: ‘Exception.block’
Perhaps you meant one of these:
data constructor ‘Exception.Deadlock’ (imported from Control.Exception),
‘Exception.catch’ (imported from Control.Exception),
‘Exception.bracket’ (imported from Control.Exception)
Network/FastCGI.hs:251:16:
Not in scope: ‘Exception.unblock’
Perhaps you meant data constructor ‘Exception.Deadlock’ (imported from Control.Exception)
Network/FastCGI.hs:368:3: Not in scope: ‘System.catch’
Network/FastCGI.hs:389:3: Not in scope: ‘System.catch’
flags: {}
extra-package-dbs: []
packages:
- '.'
extra-deps:
- direct-fastcgi-1.0.3
- utf8-string-0.3.8
resolver: lts-6.13