[commit: ghc] master: Turn NameCacheUpdater into a newtype (54957b6)

git at git.haskell.org git at git.haskell.org
Wed Nov 13 03:40:01 UTC 2013


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/54957b6e1e99a201449f386f4e6f7cfa54fab41d/ghc

>---------------------------------------------------------------

commit 54957b6e1e99a201449f386f4e6f7cfa54fab41d
Author: Patrick Palka <patrick at parcs.ath.cx>
Date:   Sat Nov 9 14:23:15 2013 -0500

    Turn NameCacheUpdater into a newtype


>---------------------------------------------------------------

54957b6e1e99a201449f386f4e6f7cfa54fab41d
 compiler/iface/IfaceEnv.lhs |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/iface/IfaceEnv.lhs b/compiler/iface/IfaceEnv.lhs
index 1410675..ef102e4 100644
--- a/compiler/iface/IfaceEnv.lhs
+++ b/compiler/iface/IfaceEnv.lhs
@@ -235,7 +235,7 @@ updNameCache upd_fn = do
 -- | A function that atomically updates the name cache given a modifier
 -- function.  The second result of the modifier function will be the result
 -- of the IO action.
-data NameCacheUpdater = NCU { updateNameCache :: forall c. (NameCache -> (NameCache, c)) -> IO c }
+newtype NameCacheUpdater = NCU { updateNameCache :: forall c. (NameCache -> (NameCache, c)) -> IO c }
 
 -- | Return a function to atomically update the name cache.
 mkNameCacheUpdater :: TcRnIf a b NameCacheUpdater



More information about the ghc-commits mailing list