> I may have already asked for this one, but in case not, please add it to the
> Hugs features wish list.  
> 
> I'd like Hugs to parse and ignore GHC-style "cost centre" annotations.  It's
> very tedious to insert and remove these annotations to get around the
> incompatibility.

Hi Conal,

I just implemented the Standard Haskell decision that variable names should
be allowed to start with _.  This means you can define your own function
called _scc_.  For example, I tested it with this:

  module Scc( _scc_ ) where

  import Trace(trace)

  _scc_ :: String -> a -> a
  _scc_ = trace

I was surprised by how easy this was to do...

Alastair

ps _ remains a wildcard as before (as in the Standard Haskell decision).
   This prevents code like: foo [_,_,_] = 3 from breaking.



Reply via email to