Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3301596
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:46:01+00:00 2026-05-17T20:46:01+00:00

Cabal is giving me mixed messages. When I say: Extensions: DeriveFunctor It says: Warning:

  • 0

Cabal is giving me mixed messages. When I say:

Extensions: DeriveFunctor

It says:

Warning: Unknown extensions: DeriveFunctor

But when I say:

GHC-Options: -XDeriveFunctor

It says:

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

For now I’m just going to use the {-# LANGUAGE DeriveFunctor #-} pragma.

$ 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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:46:02+00:00Added an answer on May 17, 2026 at 8:46 pm

    According to the Hackage documentation, as of Cabal-1.8.0.6 DeriveFunctor is not recognized. It’s a relatively new addition to GHC and it doesn’t seem to have wide use, so I’m not surprised it would have been overlooked for Cabal. This should probably be filed as a bug (feature request?) against Cabal.

    @Tom Lokhorst is right that a LANGUAGE pragma is the best option. I don’t like using Cabal’s Extensions field because then all extensions are active for all modules, which I often don’t want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've installed the latest GHC package (6.12.1) on OS X, but I can't get
I tried installing Djinn by using cabal but got the following error - $
I'm trying to install the GD library for Haskell on Windows with cabal, but
I'm using GHC and have installed several packages via Cabal. One of the packages'
Update: Running ghc-pkg check reported: ~: ghc-pkg check WARNING: cache is out of date:
When retrieving packages with Cabal, I frequently get errors with this message: user error
So I recently installed cabal (from the default binary of ArchLinux). I then tried
I downloaded the scion cabal and am attempting to created scion_server I ran all
When I run cabal update on my Mac (Snow Leopard, Intel), I get: %
I'm trying to install quickcheck 2 via cabal on Ubuntu 10.04. No matter what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.