Changeset 15424
- Timestamp:
- 03/03/07 15:17:08 (21 months ago)
- Files:
-
- 1 modified
-
src/Pugs/Class.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Class.hs
r15418 r15424 75 75 } 76 76 77 -- variant of @mkBoxClass@ meant to be called with the fixed-point 78 -- combinator, that adds the standard HOW and WHICH methods. E.g.: 79 -- _StrClass = fix $ mkBoxPureClass "Str" [Str methods] 77 80 mkBoxPureClass :: forall a1 (m :: * -> *) a (m1 :: * -> *). 78 81 ( Boxable m a1 … … 84 87 mkBoxClass cls methods' 85 88 where 86 methods' = methods ++89 methods' = flip (++) methods 87 90 [ "HOW" ... const self 88 91 , "WHAT" ... const (raiseWhatError ("Can't access attributes of prototype: " ++ cls) `asTypeOf` self)
