In Ludlow 's Code , enacted in 1650 as Connecticut 's most comprehensive legal code to that date , the state classified all sorts of misdeeds as capital offenses , including idolatry and blasphemy , and New Haven 's Code -LRB- New Haven was a separate colony then -RRB- imposed a death sentence for such crimes as working on Sunday .