Changeset 5137
- Timestamp:
- 07/01/05 22:48:43 (4 years ago)
- svk:copy_cache_prev:
- 6965
- Location:
- src
- Files:
-
- 2 modified
-
Pugs/Compile/Pugs.hs (modified) (2 diffs)
-
perl6/Prelude.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Compile/Pugs.hs
r4307 r5137 32 32 #if !defined(PUGS_HAVE_PERL5) && !defined(PUGS_HAVE_PARROT) && defined(PUGS_HAVE_TH) && (__GLASGOW_HASKELL__ <= 604) 33 33 prettyRecord :: String -> [(String, Doc)] -> Doc 34 prettyRecord con = (text con <+>) . braces . sep . punctuate semi. map assign34 prettyRecord con = (text con <+>) . braces . sep . punctuate comma . map assign 35 35 where assign (name, val) = text name <+> char '=' <+> val 36 36 #endif … … 83 83 , text ("return (" ++ show n ++ ", tvars)") 84 84 ] 85 86 instance (Typeable a) => Compile (Maybe (TVar a)) where 87 compile = const . return $ text "Nothing" 85 88 86 89 instance Compile (TVar Bool, TVar VRef) where -
src/perl6/Prelude.pm
r5008 r5137 182 182 } 183 183 184 sub Pugs::Internals::but_block ($obj, Code $code) {184 sub Pugs::Internals::but_block ($obj, Code $code) is primitive is safe { 185 185 $code($obj); 186 186 $obj;
