[Hackage] #341: Add a flag to turn warnings into errors