[Haskell-cafe] ghc error: requested module name differs from name found in interface file

Larry Evans cppljevans at suddenlink.net
Mon Oct 20 13:33:34 EDT 2008

With a file containing:

 > module Main where
 > import Array
 > import Control.Functor.Fix
I get:

 > make
 > ghc -i/root/.cabal/lib/category-extras-0.53.5/ghc-6.8.2 -c 
 > catamorphism.example.hs:19:0:
 >     Bad interface file: 
 >         Something is amiss; requested module 
main:Control.Functor.Fix differs from name found in the interface file 
 > make: *** [all] Error 1
I used cabal to install category-extras:

 > /home/evansl/download/haskell/libs # cabal install category-extras
 > Resolving dependencies...
 > Downloading category-extras-0.53.5...
 > Configuring category-extras-0.53.5...
 > Preprocessing library category-extras-0.53.5...
 > /usr/bin/ar: creating dist/build/libHScategory-extras-0.53.5.a
 > Installing library in /root/.cabal/lib/category-extras-0.53.5/ghc-6.8.2
 > Registering category-extras-0.53.5...
 > Reading package info from "dist/installed-pkg-config" ... done.
 > Saving old package config file... done.
 > Writing new package config file... done.
 > /home/evansl/download/haskell/libs #
What should I do to import the Functor.Fix as shown here:




More information about the Haskell-Cafe mailing list