Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Control/Concurrent/Async/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ import GHC.Exts
import GHC.IO hiding (finally, onException)
import GHC.Conc (ThreadId(..))

#if defined(__MHS__)
import Data.Traversable
#endif

#ifdef DEBUG_AUTO_LABEL
import qualified GHC.Stack
#endif
Expand Down
10 changes: 8 additions & 2 deletions Control/Concurrent/Async/Warden.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# LANGUAGE CPP #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}

Expand All @@ -27,11 +27,17 @@ import Control.Concurrent.Async (Async)
import qualified Control.Concurrent.Async as Async
import Control.Concurrent.MVar
import Control.Exception
import Control.Monad
import Data.HashSet (HashSet)
import qualified Data.HashSet as HashSet
import System.IO (fixIO)

#if defined(__MHS__)
import Prelude hiding(mapM_)
import Control.Monad hiding(mapM_)
import Data.Foldable(mapM_)
#else
import Control.Monad
#endif

-- | A 'Warden' is an owner of 'Async's which cancels them on 'shutdown'.
--
Expand Down