Skip to content

Commit 3dd61e2

Browse files
authored
Merge pull request #27 from mauke/hapytex-documentation/module-documentation
fix the documentation of the Data.Default module
2 parents 6fe0258 + a453f41 commit 3dd61e2

6 files changed

Lines changed: 52 additions & 26 deletions

File tree

  • data-default-class/Data/Default
  • data-default-instances-base/Data/Default/Instances
  • data-default-instances-containers/Data/Default/Instances
  • data-default-instances-dlist/Data/Default/Instances
  • data-default-instances-old-locale/Data/Default/Instances
  • data-default/Data

data-default-class/Data/Default/Class.hs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,21 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4141
{-# LANGUAGE DefaultSignatures, TypeOperators, FlexibleContexts #-}
4242
#endif
4343

44+
{-|
45+
Module : Data.Default.Class
46+
Description : Defines a class for types with a default value.
47+
48+
This module defines a class for types with a default value.
49+
It also defines 'Default' instances for the types 'Int', 'Int8',
50+
'Int16', 'Int32', 'Int64', 'Word', 'Word8', 'Word16', 'Word32', 'Word64',
51+
'Integer', 'Float', 'Double', 'Ratio', 'Complex', 'CShort', 'CUShort',
52+
'CInt', 'CUInt', 'CLong', 'CULong', 'CLLong', 'CULLong', 'CPtrdiff',
53+
'CSize', 'CSigAtomic', 'CIntPtr', 'CUIntPtr', 'CIntMax', 'CUIntMax',
54+
'CClock', 'CTime', 'CUSeconds', 'CSUSeconds', 'CFloat', 'CDouble', '(->)',
55+
'IO', 'Maybe', '()', '[]', 'Ordering', 'Any', 'All', 'Last', 'First', 'Sum',
56+
'Product', 'Endo', 'Dual', and tuples.
57+
-}
4458
module Data.Default.Class (
45-
-- | This module defines a class for types with a default value.
46-
-- It also defines 'Default' instances for the types 'Int', 'Int8',
47-
-- 'Int16', 'Int32', 'Int64', 'Word', 'Word8', 'Word16', 'Word32', 'Word64',
48-
-- 'Integer', 'Float', 'Double', 'Ratio', 'Complex', 'CShort', 'CUShort',
49-
-- 'CInt', 'CUInt', 'CLong', 'CULong', 'CLLong', 'CULLong', 'CPtrdiff',
50-
-- 'CSize', 'CSigAtomic', 'CIntPtr', 'CUIntPtr', 'CIntMax', 'CUIntMax',
51-
-- 'CClock', 'CTime', 'CUSeconds', 'CSUSeconds', 'CFloat', 'CDouble', '(->)',
52-
-- 'IO', 'Maybe', '()', '[]', 'Ordering', 'Any', 'All', 'Last', 'First', 'Sum',
53-
-- 'Product', 'Endo', 'Dual', and tuples.
5459
Default(..)
5560
) where
5661

data-default-instances-base/Data/Default/Instances/Base.hs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3333
3434
-}
3535

36-
module Data.Default.Instances.Base (
37-
-- | This module reexports the 'Data.Default.Class.Default' instances from the
38-
-- "Data.Default.Class" module.
39-
) where
36+
{-|
37+
Module : Data.Default.Instances.Base
38+
Description : Reëxports the instances from the "Data.Default.Class" module.
39+
40+
This module reëxports the 'Data.Default.Class.Default' instances from the
41+
"Data.Default.Class" module.
42+
-}
43+
module Data.Default.Instances.Base () where
4044

4145
import Data.Default.Class ()

data-default-instances-containers/Data/Default/Instances/Containers.hs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3535

3636
{-# OPTIONS_GHC -fno-warn-orphans #-}
3737

38-
module Data.Default.Instances.Containers (
39-
-- | This module defines 'Default' instances for the types 'S.Set', 'M.Map',
40-
-- 'IntMap', 'IntSet', 'Seq', and 'Tree'.
41-
) where
38+
{-|
39+
Module : Data.Default.Instances.Containers
40+
Description : Defines 'Default' instances for container types.
41+
42+
This module defines 'Default' instances for the types 'S.Set', 'M.Map',
43+
'IntMap', 'IntSet', 'Seq', and 'Tree'.
44+
-}
45+
module Data.Default.Instances.Containers () where
4246

4347
import Data.Default.Class
4448
import Data.Monoid (mempty)

data-default-instances-dlist/Data/Default/Instances/DList.hs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3535

3636
{-# OPTIONS_GHC -fno-warn-orphans #-}
3737

38-
module Data.Default.Instances.DList (
39-
-- | This module defines 'Default' instances for the type 'DList'.
40-
) where
38+
{-|
39+
Module : Data.Default.Instances.DList
40+
Description : Defines 'Default' instances for the type 'DList'.
41+
42+
This module defines 'Default' instances for the type 'DList'.
43+
-}
44+
module Data.Default.Instances.DList () where
4145

4246
import Data.Default.Class
4347
import Data.DList

data-default-instances-old-locale/Data/Default/Instances/OldLocale.hs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3535

3636
{-# OPTIONS_GHC -fno-warn-orphans #-}
3737

38-
module Data.Default.Instances.OldLocale (
39-
-- | This module defines 'Default' instances for the type 'TimeLocale'.
40-
) where
38+
{-|
39+
Module : Data.Default.Instances.OldLocale
40+
Description : Defines 'Default' instances for the type 'TimeLocale'.
41+
42+
This module defines 'Default' instances for the type 'TimeLocale'.
43+
-}
44+
module Data.Default.Instances.OldLocale () where
4145

4246
import Data.Default.Class
4347
import System.Locale

data-default/Data/Default.hs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3333
3434
-}
3535

36+
{-|
37+
Module : Data.Default
38+
Description : Defines a class for types with a default value.
39+
40+
This module defines a class for types with a default value. Instances are
41+
provided for '()', 'Data.Set.Set', 'Data.Map.Map', 'Int', 'Integer',
42+
'Float', 'Double', and many others (see below).
43+
-}
3644
module Data.Default (
37-
-- | This module defines a class for types with a default value. Instances are
38-
-- provided for '()', 'Data.Set.Set', 'Data.Map.Map', 'Int', 'Integer',
39-
-- 'Float', 'Double', and many others (see below).
4045
Default(..)
4146
) where
4247

0 commit comments

Comments
 (0)