
5 Sep
2006
5 Sep
'06
8:23 p.m.
On Tue, Sep 05, 2006 at 03:46:16PM +0100,
Chris Kuklewicz
Fixing this may be as simple as
identifier = try $ do start <- letter rest <- many (alphaNum <|> char '-') end <- letter return ([start] ++ rest ++ [end]) > "characters authorized for identifiers"
It does not work for me (and neither does the second). The "try" argument always fails, probably because the term "many" on the "rest" line is greedy and swallows the ending letter.