This is major mode for editing grammar files for Haskell parser generator Happy, mostly intended for highlighting Happy syntax along with Haskell syntax at the same time. MMM-mode is used to combine two modes but editing commands from Haskell do not work in full as if pure Haskell source was edited.
Tested with Emacs 24.3 and 25.2, should work with previous versions as well.