justinethier / husk-scheme

A full implementation of the Scheme programming language for the Haskell Platform.
http://justinethier.github.io/husk-scheme
MIT License
309 stars 28 forks source link

Reading from a non-port should be an error #195

Closed justinethier closed 9 years ago

justinethier commented 10 years ago

Not exactly sure what is going on here, but reading from a non-port should be an error:

huski> (read-line 1)
: (1)

huski> (read 1)
: (1)
justinethier commented 9 years ago

An error message was being displayed, but it was unreadable. Fixed that up to use TypeMismatch / NumArgs errors as appropriate.