diff options
author | Max Bolingbroke <batterseapower@hotmail.com> | 2011-09-09 13:34:29 +0100 |
---|---|---|
committer | Max Bolingbroke <batterseapower@hotmail.com> | 2011-09-09 14:10:25 +0100 |
commit | 2fed1c8a1dd4ce5713dde980b3a6f717ea6d6d5e (patch) | |
tree | 6fbaaa22d77308e149dbaf66d7f3d9bc95c2ed2e /src/Haddock/Interface/AttachInstances.hs | |
parent | 0f21c474382af69bb7dac214d6c225218240e033 (diff) | |
parent | 7082a7c2278a963cc55cc5776618fbfe61f1fc77 (diff) |
Merge branch 'no-pred-ty'
Conflicts:
src/Haddock/Convert.hs
Diffstat (limited to 'src/Haddock/Interface/AttachInstances.hs')
-rw-r--r-- | src/Haddock/Interface/AttachInstances.hs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Haddock/Interface/AttachInstances.hs b/src/Haddock/Interface/AttachInstances.hs index e4da3233..01d5b0f4 100644 --- a/src/Haddock/Interface/AttachInstances.hs +++ b/src/Haddock/Interface/AttachInstances.hs @@ -116,7 +116,6 @@ getAllInfo name = withSession $ \hsc_env -> do data SimpleType = SimpleType Name [SimpleType] deriving (Eq,Ord) --- TODO: should we support PredTy here? instHead :: ([TyVar], [PredType], Class, [Type]) -> ([Int], Name, [SimpleType]) instHead (_, _, cls, args) = (map argCount args, className cls, map simplify args) @@ -134,7 +133,6 @@ instHead (_, _, cls, args) where (SimpleType s ts) = simplify t1 simplify (TyVarTy v) = SimpleType (tyVarName v) [] simplify (TyConApp tc ts) = SimpleType (tyConName tc) (map simplify ts) - simplify _ = error "simplify" -- sortImage f = sortBy (\x y -> compare (f x) (f y)) |