Changeset 16488 for src/Pugs/AST.hs

Show
Ignore:
Timestamp:
05/21/07 21:51:00 (18 months ago)
Author:
audreyt
Message:

* Introduce the envPosStack abstraction to cleanup the

stack-trace generaion; "fail" now also generates trace.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/AST.hs

    r16415 r16488  
    1919    newPackage, newType, newMetaType, typeMacro, isScalarLValue, 
    2020    filterPrim, filterUserDefinedPad, typeOfParam, listVal, isImmediateMatchContext, 
    21     (./), defaultScalarPad, 
     21    (./), defaultScalarPad, envPosStack, 
    2222 
    2323    module Pugs.AST.Internals, 
     
    506506defaultScalarPad = mkPad [(varTopic, PELexical anyType defaultScalarRef mempty defaultScalarPadStore)] 
    507507 
     508envPosStack :: Env -> [Pos] 
     509envPosStack env = envPos env : maybe [] envPosStack (envCaller env) 
     510