阴谋集团给我的信息不一。当我说:
Extensions: DeriveFunctor
它说:
Warning: Unknown extensions: DeriveFunctor
但是当我说:
GHC-Options: -XDeriveFunctor
它说:
Warning: Instead of 'ghc-options: -XDeriveFunctor' use 'extensions:
DeriveFunctor'
现在我只使用{-# LANGUAGE DeriveFunctor #-}
编译指示。
$ cabal --version
cabal-install version 0.8.2
using version 1.8.0.6 of the Cabal library
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.12.3
$ basename $(mdfind haskell-platform | grep .dmg)
haskell-platform-2010.2.0.0.i386.dmg