[GHC] #9009: Confusing error message when loading package with TH

GHC ghc-devs at haskell.org
Fri Nov 7 20:45:04 UTC 2014


#9009: Confusing error message when loading package with TH
-------------------------------------+-------------------------------------
              Reporter:  jstolarek   |            Owner:
                  Type:  bug         |           Status:  infoneeded
              Priority:  normal      |        Milestone:
             Component:  Package     |          Version:  7.8.2
  system                             |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:  Other       |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
Changes (by thomie):

 * status:  new => infoneeded


Comment:

 Compiling singletons-1.0 with HEAD failes with:
 {{{
 src/Data/Singletons/Prelude/Ord.hs:48:15:
     MINIMAL pragmas not (yet) handled by Template Haskell
 }}}


 Using ghc 7.8.3 I get a nice error message when compiling Foo.hs:
 {{{
 singletons-1.0$ ghc-7.8.3 -package-db=.cabal-sandbox/x86_64-linux-
 ghc-7.8.3-packages.conf.d/ Foo.hs
 [1 of 1] Compiling Foo              ( Foo.hs, Foo.o )
 Failed to load interface for ‘Data.Singletons.Single.Monad’
 There are files missing in the ‘singletons-1.0’ package,
 try running 'ghc-pkg check'.
 Use -v to see a list of the files searched for.
 }}}

 jstolarek: What am I missing? Maybe cabal version (1.20.0.3) is relevant?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9009#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list