Changeset 5255 for src/Pugs/Bind.hs

Show
Ignore:
Timestamp:
07/06/05 08:29:42 (4 years ago)
Author:
chromatic
svk:copy_cache_prev:
7266
Message:

Show name of sub with mismatched parameters in invocant binding failure message.
Comment typo fix in Pugs.Lexer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Bind.hs

    r5111 r5255  
    213213        fail $ "Wrong number of invocant parameters: " 
    214214            ++ (show $ act) ++ " actual, " 
    215             ++ (show $ act + cnt) ++ " expected" 
     215            ++ (show $ act + cnt) ++ " expected in " 
     216            ++ (show $ subName sub) 
    216217             
    217218    let (boundReq, boundOpt) = partition (\x -> isRequired (fst x)) bindings -- bound params which are required