:10:1: parse error on input ‘{-# RULES’