Deriving isn't allowed in hs-boot files (says the user manual) This patch checks properly instead of crashing!