Changeset 17873

Show
Ignore:
Timestamp:
09/16/07 23:33:39 (14 months ago)
Author:
ryporter
Message:

Stricter pattern matching before calling mungeChainSub(). Prevents "Irrefutable pattern failed" errors that were showing up in unit tests in value-equivalence.t.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval.hs

    r17562 r17873  
    12521252    , Nothing                           <- invs 
    12531253    = case args of 
    1254         (App _ Nothing _:_) -> mungeChainSub sub args 
    1255         _                   -> applyChainSub sub args 
     1254        (App (Var _) Nothing _:_) -> mungeChainSub sub args 
     1255        _                         -> applyChainSub sub args 
    12561256    -- normal application 
    12571257    | otherwise