Skip to content

Commit ddb44a0

Browse files
committed
io-classes: improved haddocks
1 parent 3a46912 commit ddb44a0

File tree

6 files changed

+21
-2
lines changed

6 files changed

+21
-2
lines changed

io-classes/src/Control/Monad/Class/MonadAsync.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
{-# LANGUAGE TypeFamilyDependencies #-}
1111
-- MonadAsync's ReaderT instance is undecidable.
1212
{-# 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+
--
1317
module Control.Monad.Class.MonadAsync
1418
( MonadAsync (..)
1519
, AsyncCancelled (..)

io-classes/src/Control/Monad/Class/MonadFork.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
{-# LANGUAGE ScopedTypeVariables #-}
44
{-# LANGUAGE TypeFamilies #-}
55

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+
--
610
module Control.Monad.Class.MonadFork
711
( MonadThread (..)
812
, labelThisThread

io-classes/src/Control/Monad/Class/MonadTest.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Control.Monad.Reader
44

55
-- | A helper monad for /IOSimPOR/.
66
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
88
-- it are also included in the exploration.
99
--
1010
exploreRaces :: m ()

io-classes/src/Control/Monad/Class/MonadThrow.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
{-# LANGUAGE TupleSections #-}
88
{-# LANGUAGE TypeFamilies #-}
99

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+
--
1014
module Control.Monad.Class.MonadThrow
1115
( MonadThrow (..)
1216
, MonadCatch (..)

io-classes/src/Control/Monad/Class/MonadTime.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{-# LANGUAGE DeriveGeneric #-}
22

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+
--
37
module Control.Monad.Class.MonadTime
48
( MonadTime (..)
59
, MonadMonotonicTimeNSec (..)

io-classes/src/Control/Monad/Class/MonadTimer.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
{-# LANGUAGE ScopedTypeVariables #-}
55
{-# LANGUAGE TypeFamilies #-}
66

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+
--
811
module Control.Monad.Class.MonadTimer
912
( MonadDelay (..)
1013
, MonadTimer (..)

0 commit comments

Comments
 (0)