Show
Ignore:
Timestamp:
07/10/05 14:55:01 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
7349
Message:

* all prelude functions is now fully compiled in PCP...

let's see if turning on Pugs.Run support for PCP
will Magically Work

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile/Pugs.hs

    r5357 r5358  
    9292    return $ prettyDo 
    9393        [ prettyBind "exp" expC 
    94         , text ("return (" ++ con ++ " " ++ show anno ++ " exp)") 
     94        , text ("return (" ++ con ++ " (" ++ show anno ++ ") exp)") 
    9595        ] 
    9696 
     
    172172-- Haddock can't cope with Template Haskell 
    173173instance Compile VCode where 
    174     compile code | subType code == SubPrim = return $ text "return mkPrim" 
     174    compile MkCode{ subBody = Prim _ } = return $ text "return mkPrim" 
    175175    compile code = do  
    176176        bodyC <- compile $ subBody code