disnet / contracts.js

Contract library for JavaScript
http://www.contractsjs.org
MIT License
149 stars 8 forks source link

Better error messages for contract creation #3

Closed disnet closed 12 years ago

disnet commented 12 years ago

Error message is non-obvious when you make a contract out of non-contracts. Eg:

id :: (String) -> String

vs

id :: (Str) -> Str

Should just say String is not a contract.