isTypeId, isValueId

People,
I need to implement the functions
isTypeId, isValueId :: String -> Bool
which check whether the argument fits respectively the syntax of a
type identifier and of a value identifier -- in the Haskell-98 syntax
for a program.
The argument is produced by lexLots. For example, my program applies
lexLots "ab-(f_21
participants (1)
-
Serge D. Mechveliani