       ]
     ,
       name: 'meta.declaration.class.haskell'
-      begin: /\b(class)\b/
-      end: /\b(where)\b|$/
+      begin: /\b(class)(?!')\b/
+      end: /\b(where)(?!')\b|$/
       beginCaptures:
         1: name: 'storage.type.class.haskell'
       endCaptures:

    ,
      include: '#function_type_declaration'
    ,
      match: /\b(Just|Left|Right|Nothing|True|False|LT|EQ|GT)\b/
      name: 'support.tag.haskell'
    ,
      include: '#type_ctor'

      contentName: 'string.quoted.quasiquotes.haskell'
    ,
      name: 'meta.declaration.module.haskell'
      begin: /\b(module)(?!')\b/
      end: /\b(where)(?!')\b/
      beginCaptures:
        1: name: 'keyword.other.haskell'
      endCaptures:
