This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module ConcurrentMap where | |
| import Control.Concurrent.STM.TVar (TVar) | |
| import Control.Concurrent.STM (STM) | |
| import Data.Hashable (Hashable) | |
| import Data.HashMap.Strict (HashMap) | |
| import Data.Vector (Vector) | |
| import qualified Control.Concurrent.STM.TVar as TVar | |
| import qualified Data.Hashable as Hashable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import qualified System.Console.Concurrent as Concurrent | |
| trace :: [Char] -> a -> a | |
| trace string expr = | |
| unsafePerformIO $ do | |
| traceIO string | |
| return expr | |
| traceIO :: [Char] -> IO () | |
| traceIO string = do |