POV-Ray : Newsgroups : povray.off-topic : My first C++ program : Re: A test Server Time
2 Nov 2024 19:16:38 EDT (-0400)
  Re: A test  
From: Orchid XP v8
Date: 20 Sep 2008 17:49:16
Message: <48d56fdc$1@news.povray.org>
Orchid XP v8 wrote:

> The following are reserved keywords in Haskell:
> 
>   module, where, import, qualified, hiding, as, case, of, let, in, data, 
> type, newtype, class, instance, deriving, do
> 
> I'm pretty sure that's the complete list. I count 17 reserved words.

WRONG! It's actually 21. I forget if/then/else, and apparently "default" 
is a keyword...? (Ah, yes. The Haskell '98 Language Report explains that 
this very obscure keyword is for adjusting the type defaulting 
mechanism. As if you'd want to...)

> (I don't know anything 
> about Emacs, but I imagine it can't be hard to program it so that just 
> the 17 words above print in a different colour...)

Apparently it's already been done. (SUPRISE!)

http://www.iro.umontreal.ca/~monnier/elisp/#haskell-mode

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.