X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FndpFlatten%2FNDPCoreUtils.hs;h=b3eee9afedfa2463336c3344cb26f0d624a4ae5b;hb=d5659c2d96547d10aaf4227f0ecc5b10ada4e0f9;hp=6e6b94f17556f430c6276b0c2d7e80b851c844a9;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1;p=ghc-hetmet.git diff --git a/compiler/ndpFlatten/NDPCoreUtils.hs b/compiler/ndpFlatten/NDPCoreUtils.hs index 6e6b94f..b3eee9a 100644 --- a/compiler/ndpFlatten/NDPCoreUtils.hs +++ b/compiler/ndpFlatten/NDPCoreUtils.hs @@ -1,3 +1,10 @@ +{-# OPTIONS -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings +-- for details + -- $Id$ -- -- Copyright (c) [2001..2002] Manuel M T Chakravarty & Gabriele Keller @@ -171,4 +178,5 @@ substIdEnv env (Case expr b ty alts) = (c, bnds, substIdEnv (delVarEnvList env bnds) expr) substIdEnv env (Note n expr) = Note n (substIdEnv env expr) +substIdEnv env (Cast e co) = Cast (substIdEnv env e) co substIdEnv env e@(Type t) = e