From d1bf3e5030ebf0f8f7443b394abb96da2f216eb9 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Wed, 13 Jan 2021 18:46:45 -0500 Subject: Update for "FastString: Use FastMutInt instead of IORef Int" --- haddock-api/src/Haddock/InterfaceFile.hs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'haddock-api/src/Haddock') diff --git a/haddock-api/src/Haddock/InterfaceFile.hs b/haddock-api/src/Haddock/InterfaceFile.hs index 95bfc903..211c7d55 100644 --- a/haddock-api/src/Haddock/InterfaceFile.hs +++ b/haddock-api/src/Haddock/InterfaceFile.hs @@ -123,14 +123,12 @@ writeInterfaceFile filename iface = do put_ bh0 symtab_p_p -- Make some intial state - symtab_next <- newFastMutInt - writeFastMutInt symtab_next 0 + symtab_next <- newFastMutInt 0 symtab_map <- newIORef emptyUFM let bin_symtab = BinSymbolTable { bin_symtab_next = symtab_next, bin_symtab_map = symtab_map } - dict_next_ref <- newFastMutInt - writeFastMutInt dict_next_ref 0 + dict_next_ref <- newFastMutInt 0 dict_map_ref <- newIORef emptyUFM let bin_dict = BinDictionary { bin_dict_next = dict_next_ref, -- cgit v1.2.3