Является ли DeriveFunctor широко известным расширением? Кабал кажется сбитым с толку

Кабала дает мне смешанные сообщения. Когда я говорю:

Extensions: DeriveFunctor

Он говорит:

Warning: Unknown extensions: DeriveFunctor

Но когда я говорю:

GHC-Options: -XDeriveFunctor

Он говорит:

Warning: Instead of 'ghc-options: -XDeriveFunctor' use 'extensions:
DeriveFunctor'

А пока я ' m просто собираюсь использовать прагму {- # 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
7
задан sam boosalis 18 May 2014 в 19:48
поделиться