Changeset 14138 for src/Pugs/AST.hs

Show
Ignore:
Timestamp:
10/09/06 17:27:03 (2 years ago)
Author:
audreyt
Message:

* Pugs.AST: Bring (listVal :: Val -> [Val]) helper function

from newVal into oldVal land.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/AST.hs

    r14014 r14138  
    1818    mergeStmts, isEmptyParams, 
    1919    newPackage, newType, newMetaType, typeMacro, isScalarLValue, 
    20     filterPrim, filterUserDefinedPad, typeOfParam, 
     20    filterPrim, filterUserDefinedPad, typeOfParam, listVal, 
    2121 
    2222    module Pugs.AST.Internals, 
     
    359359    s       -> typeOfSigil s 
    360360 
    361  
     361listVal :: Val -> [Val] 
     362listVal (VList xs)  = xs 
     363listVal x           = [x] 
     364