Allow type signatures in instance decls (Trac #5676)
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 12 Dec 2011 00:32:06 +0000 (00:32 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 12 Dec 2011 00:32:06 +0000 (00:32 +0000)
commit6353ae0ff672dfcf79fd9bca1d58ff6ec7e7f9e0
tree2d4c50b00c272b2bf0623deadd47008cc80f86e3
parent4bc413de1dbe7ca6d3d521ab9044d9c1cbf6fd5b
Allow type signatures in instance decls (Trac #5676)

This new feature-ette, enable with -XInstanceSigs, lets
you give a type signature in an instance declaration:

   instance Eq Int where
     (==) :: Int -> Int -> Bool
     (==) = ...blah...

Scoped type variables work too.
compiler/main/DynFlags.hs
compiler/rename/RnBinds.lhs
compiler/rename/RnSource.lhs
compiler/typecheck/TcBinds.lhs
compiler/typecheck/TcInstDcls.lhs
compiler/typecheck/TcSMonad.lhs
docs/users_guide/glasgow_exts.xml