f we're linking a binary, then only targets that produce object
-- code are allowed (requests for other target types are ignored).
setTarget :: HscTarget -> DynP ()
setTarget l = setTargetWithPlatform (const l)

se
setTarget :: HscTarget -> DynP ()
setTarget l = setTargetWithPlatform (const l)
setTarget l = setTargetWithPlatform (const l)