FIX BUILD: Haddock 1.x fails to parse (Prelude..)
authorSimon Marlow <simonmar@microsoft.com>
Mon, 29 Oct 2007 13:19:21 +0000 (13:19 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Mon, 29 Oct 2007 13:19:21 +0000 (13:19 +0000)
Control/Category.hs

index 13fba06..c85ebd5 100644 (file)
@@ -38,7 +38,10 @@ class Category cat where
 
 instance Category (->) where
        id = Prelude.id
+#ifndef __HADDOCK__
+-- Haddock 1.x cannot parse this:
        (.) = (Prelude..)
+#endif
 
 -- | Right-to-left composition
 (<<<) :: Category cat => cat b c -> cat a b -> cat a c