valderman / haste-compiler

A GHC-based Haskell to JavaScript compiler
http://haste-lang.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 109 forks source link

We get error "Uncaught #<T2>" #360

Open tokiwoousaka opened 8 years ago

tokiwoousaka commented 8 years ago
  1. Build https://github.com/tokiwoousaka/bucephalus-base as "make check_haste". (hastec version is 0.5.3)
  2. Build https://github.com/tokiwoousaka/bucephalus-haste as "haste-cabal build", Then we get file "app/Check.js".
  3. Open app/index.html on chromium browser(47.0.2526.73), Then got error "Uncaught #". if you use Firefox(43.0) browser, then you would get error "uncaught exception: [object Object]"

I tougth cause is here -> https://github.com/tokiwoousaka/bucephalus-haste/blob/master/src/Game/Bucephalus/Haste.hs#L46, but no type error.

Thanks.

valderman commented 8 years ago

The actual cause of the exception is most likely an uncaught Haskell exception getting thrown somewhere. The top level handler is not very good at producing sensible error messages from uncaught exceptions at the moment.