I have some basic knowledge of Haskell (so forgive me if my question seems trivial for Haskellers here) and have been studying Haskell syntax lately. There is only one place in the Haskell 2010 report that uses the "type" keyword:
topdecl ::= "type" simpletype "=" type
And as you can see, "=" always required. In one Haskell file, I see this piece of code:
type Key m :: *
taken from TrieMap.hs line 61.
which does not comply with the rule. I suspect this is a GHC extension or something similar. Can someone tell me which grammar this piece of code rules with? BTW, I did not find grammar rules for extensions and had to guess many of them, somewhere registered somewhere?
source share