Skip to content
  • Richard Eisenberg's avatar
    Move check for dcUserTyVarBinders invariant · fe0fa63e
    Richard Eisenberg authored
    Previously, this check was done in mkDataCon. But this
    sometimes caused assertion failures if an invalid data
    con was made. I've moved the check to checkValidDataCon,
    where we can be sure the datacon is otherwise valid first.
    fe0fa63e