Changeset 15297 for src/Pugs/AST.hs

Show
Ignore:
Timestamp:
02/18/07 15:59:02 (21 months ago)
Author:
audreyt
Message:

* Revert the previous patch; everything back to normal.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/AST.hs

    r15296 r15297  
    1 {-# OPTIONS_GHC -cpp -fglasgow-exts -fno-warn-orphans -funbox-strict-fields -fallow-overlapping-instances -foverloaded-strings #-} 
     1{-# OPTIONS_GHC -cpp -fglasgow-exts -fno-warn-orphans -funbox-strict-fields -fallow-overlapping-instances #-} 
    22 
    33{-| 
     
    216216mergeStmts x y = Stmts x y 
    217217 
    218 isImplicitTopic :: ID -> Bool 
     218isImplicitTopic :: String -> Bool 
    219219isImplicitTopic "subst" = True 
    220220isImplicitTopic "match" = True 
     
    234234 
    235235_underscore :: ID 
    236 _underscore = _cast "_" 
     236_underscore = cast "_"  
    237237 
    238238newPackage :: String -> String -> [String] -> [String] -> Exp 
     
    244244            (Just $ Val (VType $ mkType cls)) 
    245245            [ Syn "named" 
    246                 [ Val (_VStr "is") 
    247                 , Val (VList $ map castV classes) 
     246                [ Val (VStr "is") 
     247                , Val (VList $ map VStr classes) 
    248248                ] 
    249249            , Syn "named" 
    250                 [ Val (_VStr "does") 
    251                 , Val (VList $ map castV roles) 
     250                [ Val (VStr "does") 
     251                , Val (VList $ map VStr roles) 
    252252                ] 
    253253            , Syn "named" 
    254                 [ Val (_VStr "name") 
    255                 , Val (castV name) 
     254                [ Val (VStr "name") 
     255                , Val (VStr name) 
    256256                ] 
    257257            , Syn "named" 
    258                 [ Val (_VStr "attrs") 
     258                [ Val (VStr "attrs") 
    259259                , Syn "\\{}" [Noop] 
    260260                ]