cvs commit: fptools/ghc/docs/users_guide utils.sgml fptools/ghc/lib/std Makefile fptools/ghc/utils/hsc2hs Main.hs fptools/mk suffix.mk

Simon Marlow simonmar@microsoft.com
Thu, 29 Mar 2001 16:25:40 +0100


> On Thu, 29 Mar 2001, Simon Marlow wrote:
>=20
> > I thought the _hsc.h and _hsc.c suffixes were better.  With=20
> Hs*.h and
> > Hs*.c I can't uniquely identify hsc2hs-generated files in the tree,
> > because these patterns match other, non-transient, files.
>=20
> You are right. I previously switched to *.hs{,.h,.c} to allow
>     *.lhsc -> *.lhs{,.h,.c}
> and potentially other combinations by touching just the last=20
> character,
> but now I split the extension anyway so it's not a big deal to append
> something to the basename again instead of prepending.
>=20
> What about *_support{.h,.c}? I also thought of=20
> *_cbits{.h,.c}. But maybe
> *_hsc{.h,.c} is the best. These names will be used by=20
> programmers directly
> if the proposal of specifying headers in foreign declarations=20
> is accepted.

*_hsc.[ch] is fine, I think.

Cheers,
	Simon