ghc5.00 misreads a comment . . .

George Russell ger at tzi.de
Wed Apr 18 11:44:47 EDT 2001


This is ghc5.00/Sparc, running with the following command line

/usr/local/pub-bkb/ghc/ghc-5.00/bin/ghc -c CVSHigh.hs -package concurrent -package data -package net -package posix -package text -package util -package lang -i.:/home/ger/uni/util:/home/ger/uni/concurrency:/home/ger/uni/reactor:/home/ger/uni/server:/home/ger/uni/htk:/home/ger/uni/davinci:/home/ger/uni/graphs:/home/ger/uni/tools:/home/ger/uni/cvs:/home/ger/uni/types -fglasgow-exts -fallow-overlapping-instances -fallow-undecidable-instances -cpp -ddump-hi-diffs -H25M -recomp -fwarn-deprecations -Onot -DDEBUG -fasm

The first lines of CVSHigh.hs are:
> {-# This module encapsulates the basic CVS functionality we need,
>     calling CVSBasic to issue the commands, looking at the output,
>     and returning what we need to know in a Haskell-friendly form.
>     #-}
> module CVSHigh(
(The complete module is attached)
The file compiles OK, but to my surprise, I cannot find CVSHigh.hi.
Further investigation reveals that instead I have "encapsulates.hi"
(also attached).  It looks as if GHC chooses the name "encapsulates"
from the comment.  Indeed if I change "encapsulates" to "wraps" 
I get wraps.hi.  However if I replace "This module e" by "E", sanity
returns.

So er what exactly is going on please?  I thought that unless a comment
began with something like OPTIONS or INLINE it would be treated as 
a "real" comment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CVSHigh.hs
Type: application/octet-stream
Size: 15026 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20010418/ad292c7c/CVSHigh.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: encapsulates.hi
Type: application/octet-stream
Size: 5120 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20010418/ad292c7c/encapsulates.obj


More information about the Glasgow-haskell-bugs mailing list