logo       

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

lang.haskell.glasgow.bugs

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

#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_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise