Changeset 21673 for src/Pugs/Class.hs
- Timestamp:
- 08/01/08 13:56:05 (4 months ago)
- Files:
-
- 1 modified
-
src/Pugs/Class.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Class.hs
r16507 r21673 28 28 import Pugs.AST.Eval 29 29 import Control.Monad.Fix 30 import qualified Data.Map asMap30 import qualified StringTable.AtomMap as AtomMap 31 31 import qualified Data.Typeable as Typeable 32 32 … … 173 173 cast = (`MkMethodInvocation` CaptSub{ c_feeds = [::] }) . cast 174 174 175 instance ((:>:) Call (ByteString, [Val], Map ID Val)) where 176 cast (meth, pos, named) = MkMethodInvocation (cast meth) CaptSub{ c_feeds = [: MkFeed (toP pos) (Map.map (\x -> [:x:]) named) :]} 175 instance ((:>:) Call (ByteString, [Val], AtomMap Val)) where 176 cast (meth, pos, named) = MkMethodInvocation (cast meth) CaptSub 177 { c_feeds = [: MkFeed (toP pos) (AtomMap.map (\x -> [:x:]) named) :]} 177 178
