[project @ 2004-03-17 23:22:51 by ralf]
[ghc-base.git] / Data / Generics / Instances.hs
index 97f3277..b977466 100644 (file)
 -- \"Scrap your boilerplate\" --- Generic programming in Haskell 
 -- See <http://www.cs.vu.nl/boilerplate/>. The present module
 -- instantiates the class Data for Prelude-like datatypes.
+-- (This module does not export anything. It really just defines instances.)
 --
 -----------------------------------------------------------------------------
 
 module Data.Generics.Instances 
+
 where
 
 
@@ -50,6 +52,7 @@ falseConstr  = mkConstr boolDataType "False" [] Prefix
 trueConstr   = mkConstr boolDataType "True"  [] Prefix
 boolDataType = mkDataType "Prelude.Bool" [falseConstr,trueConstr]
 
+
 instance Data Bool where
   toConstr False = falseConstr
   toConstr True  = trueConstr
@@ -258,7 +261,7 @@ instance (Data a, Integral a) => Data (Ratio a) where
 ------------------------------------------------------------------------------
 
 
-nilConstr    = mkConstr listDataType "[]"  [] Prefix
+nilConstr    = mkConstr listDataType "[]" [] Prefix
 consConstr   = mkConstr listDataType "(:)" [] Infix
 listDataType = mkDataType "Prelude.[]" [nilConstr,consConstr]