Allow optional 'family' and 'instance' keywords in associated type instances
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 7 Nov 2013 13:24:51 +0000 (13:24 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 7 Nov 2013 13:26:09 +0000 (13:26 +0000)
commit384398b3eb2bc36a3e7b42a51495bd89398075b5
tree87caec498f5842746aa4dc36e3f6e3a95a8a7374
parent2403fa102559e81d665838a62b2a5de3229a9783
Allow optional 'family' and 'instance' keywords in associated type instances

This is to allow

   class C a where
      type family F a
      type instance F a = Bool

   instance C Int where
      type instance F Int = Char

Plus minor improvements relating to Trac #8506
compiler/parser/Parser.y.pp
compiler/parser/RdrHsSyn.lhs
docs/users_guide/glasgow_exts.xml