[project @ 2001-01-19 12:23:16 by simonmar]
authorsimonmar <unknown>
Fri, 19 Jan 2001 12:23:16 +0000 (12:23 +0000)
committersimonmar <unknown>
Fri, 19 Jan 2001 12:23:16 +0000 (12:23 +0000)
ignore Notes when compiling tail calls.

ghc/compiler/ghci/ByteCodeGen.lhs

index 7afcb10..12c0463 100644 (file)
@@ -423,10 +423,11 @@ schemeT d s p app
          (args_r_to_l_raw, fn) = chomp app
          chomp expr
             = case snd expr of
-                 AnnVar v   -> ([], v)
-                 AnnApp f a -> case chomp f of (az, f) -> (snd a:az, f)
-                 other      -> pprPanic "schemeT" 
-                                  (ppr (deAnnotate (panic "schemeT.chomp", other)))
+                 AnnVar v    -> ([], v)
+                 AnnApp f a  -> case chomp f of (az, f) -> (snd a:az, f)
+                 AnnNote n e -> chomp e
+                 other       -> pprPanic "schemeT" 
+                                   (ppr (deAnnotate (panic "schemeT.chomp", other)))
          
          args_r_to_l = filter (not.isTypeAtom) args_r_to_l_raw
          isTypeAtom (AnnType _) = True