[GHC] #658: pragma documentation unclear on where to put pragmas

GHC trac at galois.com
Mon Jan 16 05:12:20 EST 2006


#658: pragma documentation unclear on where to put pragmas
------------------------------+---------------------------------------------
    Reporter:  ijones         |        Owner:             
        Type:  bug            |       Status:  new        
    Priority:  normal         |    Milestone:             
   Component:  Documentation  |      Version:  6.4.1      
    Severity:  normal         |     Keywords:             
          Os:  Unknown        |   Difficulty:  Easy (1 hr)
Architecture:  Unknown        |  
------------------------------+---------------------------------------------
In trying to understand
 [http://www.haskell.org/ghc/docs/latest/html/users_guide/pragmas.html the
 documentation on pragmas] I could not figure out where to place a pragma
 of the form:
 {{{ {-# DEPRECATED f, C, T "Don't use these" #-} }}}

 for instance, in Distribution.Setup.hs, I tried to add:
 {{{
 {-# DEPRECATED CopyPrefix "Don't use this." #-}

 data CopyDest
   = NoCopyDest
   | CopyTo FilePath
   | CopyPrefix FilePath         -- DEPRECATED
   deriving (Eq, Show)
 }}}

 but got the error:
 {{{
 ./Distribution/Setup.hs:172:15:
     Not in scope: type constructor or class `CopyPrefix'
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/658>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list