Cabal मुझे मिश्रित संदेश दे रहा है। जब मैं कहता हूँ:क्या डेरिवफंक्टर एक अच्छी तरह से मान्यता प्राप्त विस्तार है? Cabal उलझन में लगता है
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
क्या GHC या हास्केल मंच के संस्करण प्रयोग कर रहे> –
अधिक संस्करण जानकारी गयी। –
मुझे इस विशेष चेतावनी के बारे में पता नहीं है, लेकिन मुझे लगता है कि फ़ाइल के अंदर एक भाषा प्रज्ञा जोड़ना वैसे भी सबसे अच्छा विकल्प है। –