[project @ 2005-10-06 10:38:22 by simonmar]
authorsimonmar <unknown>
Thu, 6 Oct 2005 10:38:22 +0000 (10:38 +0000)
committersimonmar <unknown>
Thu, 6 Oct 2005 10:38:22 +0000 (10:38 +0000)
small refactoring

From: Autrijus Tang <autrijus@autrijus.org>

ghc/compiler/coreSyn/CoreUtils.lhs

index 8aba9b1..97091fb 100644 (file)
@@ -455,7 +455,7 @@ idAppIsCheap id n_val_args
   | otherwise 
   = case globalIdDetails id of
        DataConWorkId _ -> True
-       RecordSelId _ _ -> n_val_args == 1      -- I'm experimenting with making record selection
+       RecordSelId {}  -> n_val_args == 1      -- I'm experimenting with making record selection
        ClassOpId _     -> n_val_args == 1      -- look cheap, so we will substitute it inside a
                                                -- lambda.  Particularly for dictionary field selection.
                -- BUT: Take care with (sel d x)!  The (sel d) might be cheap, but