[Haskell-cafe] Invalid declaration names in TH that typecheck
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Fri Oct 17 12:09:07 EDT 2008
On 2008 Oct 17, at 7:33, Sean Leather wrote:
> Apparently, I can create a function declaration (FunD) with a name
> containing an invalid sequence of characters. It passes typechecking
> and compiles. It even shows up in GHCi!
This may be a feature. Consider that internal functions use # as an
alphanumeric (via an extension); it can be useful to have names that
can't be used in ordinary code.
This is an inevitable aspect of being able to program at a level which
permits symbol table manipulation.
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe