Changeset 5137 for src/Pugs/Compile
- Timestamp:
- 07/01/05 22:48:43 (3 years ago)
- svk:copy_cache_prev:
- 6965
- Files:
-
- 1 modified
-
src/Pugs/Compile/Pugs.hs (modified) (2 diffs)
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
