Changeset 5137 for src/Pugs/Compile

Show
Ignore:
Timestamp:
07/01/05 22:48:43 (3 years ago)
Author:
autrijus
svk:copy_cache_prev:
6965
Message:

* perl script/pugscc --run -e 'say 1+3' now compiles again

(need to test non-TH builds)

Files:
1 modified

Legend:

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

    r4307 r5137  
    3232#if !defined(PUGS_HAVE_PERL5) && !defined(PUGS_HAVE_PARROT) && defined(PUGS_HAVE_TH) && (__GLASGOW_HASKELL__ <= 604) 
    3333prettyRecord :: String -> [(String, Doc)] -> Doc 
    34 prettyRecord con = (text con <+>) . braces . sep . punctuate semi . map assign 
     34prettyRecord con = (text con <+>) . braces . sep . punctuate comma . map assign 
    3535    where assign (name, val) = text name <+> char '=' <+> val 
    3636#endif 
     
    8383                , text ("return (" ++ show n ++ ", tvars)") 
    8484                ] 
     85 
     86instance (Typeable a) => Compile (Maybe (TVar a)) where 
     87    compile = const . return $ text "Nothing" 
    8588 
    8689instance Compile (TVar Bool, TVar VRef) where