Restrict merlin to checking part of buffer?

In Emacs, is it possible to restrict Merlin to check only part of the buffer? For scripting, I use the # (* exec ocaml … *) trick to load topfind, which Merlin doesn’t like.

There doesn’t appear to be a command to apply Merlin’s error checking to just a region, nor does narrowing the buffer solve the problem. For my purposes, it would be ideal to configure Merlin itself to ignore certain lines or patterns/regexps, so that the restriction could be persistent.