File tree Expand file tree Collapse file tree 6 files changed +21
-2
lines changed
io-classes/src/Control/Monad/Class Expand file tree Collapse file tree 6 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 10
10
{-# LANGUAGE TypeFamilyDependencies #-}
11
11
-- MonadAsync's ReaderT instance is undecidable.
12
12
{-# LANGUAGE UndecidableInstances #-}
13
+
14
+ -- | <https://hackage.haskell.org/package/async async> API compatible with both
15
+ -- 'IO' and <https://hackage.haskell.org/package/io-sim IOSim>.
16
+ --
13
17
module Control.Monad.Class.MonadAsync
14
18
( MonadAsync (.. )
15
19
, AsyncCancelled (.. )
Original file line number Diff line number Diff line change 3
3
{-# LANGUAGE ScopedTypeVariables #-}
4
4
{-# LANGUAGE TypeFamilies #-}
5
5
6
+ -- | A generalisation of
7
+ -- <https://hackage.haskell.org/package/base/docs/Control-Concurrent.html Control.Concurrent>
8
+ -- API to both 'IO' and <https://hackage.haskell.org/package/io-sim IOSim>.
9
+ --
6
10
module Control.Monad.Class.MonadFork
7
11
( MonadThread (.. )
8
12
, labelThisThread
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import Control.Monad.Reader
4
4
5
5
-- | A helper monad for /IOSimPOR/.
6
6
class Monad m => MonadTest m where
7
- -- | mark a thread for schedule exploration. All threads that are forked by
7
+ -- | Mark a thread for schedule exploration. All threads that are forked by
8
8
-- it are also included in the exploration.
9
9
--
10
10
exploreRaces :: m ()
Original file line number Diff line number Diff line change 7
7
{-# LANGUAGE TupleSections #-}
8
8
{-# LANGUAGE TypeFamilies #-}
9
9
10
+ -- | A generalisation of
11
+ -- <https://hackage.haskell.org/package/base/docs/Control-Exception.html Control.Exception>
12
+ -- API to both 'IO' and <https://hackage.haskell.org/package/io-sim IOSim>.
13
+ --
10
14
module Control.Monad.Class.MonadThrow
11
15
( MonadThrow (.. )
12
16
, MonadCatch (.. )
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE DeriveGeneric #-}
2
2
3
+ -- | <https://hackage.haskell.org/package/time time> and
4
+ -- <https://hackage.haskell.org/package/base base> time API compatible with both
5
+ -- 'IO' and <https://hackage.haskell.org/package/io-sim IOSim>.
6
+ --
3
7
module Control.Monad.Class.MonadTime
4
8
( MonadTime (.. )
5
9
, MonadMonotonicTimeNSec (.. )
Original file line number Diff line number Diff line change 4
4
{-# LANGUAGE ScopedTypeVariables #-}
5
5
{-# LANGUAGE TypeFamilies #-}
6
6
7
- -- | Provides classes to handle delays and timeouts.
7
+ -- | Provides classes to handle delays and timeouts which generalised
8
+ -- <https://hackage.haskell.org/package/base base> API to both 'IO' and
9
+ -- <https://hackage.haskell.org/package/io-sim IOSim>.
10
+ --
8
11
module Control.Monad.Class.MonadTimer
9
12
( MonadDelay (.. )
10
13
, MonadTimer (.. )
You can’t perform that action at this time.
0 commit comments