From e3b0be8daf6f9fc8adad3d858f80187d3de74876 Mon Sep 17 00:00:00 2001 From: Ɓukasz Hanuszczak Date: Wed, 29 Jul 2015 19:45:15 +0200 Subject: Add some documentation for instance head specializer. --- haddock-api/src/Haddock/Interface/Specialize.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'haddock-api/src/Haddock') diff --git a/haddock-api/src/Haddock/Interface/Specialize.hs b/haddock-api/src/Haddock/Interface/Specialize.hs index df7f63bc..59985de6 100644 --- a/haddock-api/src/Haddock/Interface/Specialize.hs +++ b/haddock-api/src/Haddock/Interface/Specialize.hs @@ -88,6 +88,8 @@ specializeSig bndrs typs (TypeSig lnames (L loc typ) prn) = specializeSig _ _ sig = sig +-- | Make all details of instance head (signatures, associated types) +-- specialized to that particular instance type. specializeInstHead :: (Eq name, Typeable name, DataId name, SetName name) => InstHead name -> InstHead name specializeInstHead ihd@InstHead { ihdInstType = clsi@ClassInst { .. }, .. } = -- cgit v1.2.3