valderman / haste-compiler

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

bug - 'Haste.DOM.JSString.jsElemsByClassName' function #384

Closed codeonwort closed 7 years ago

codeonwort commented 7 years ago
jsElemsByClassName :: JSString -> IO [Elem]
jsElemsByClassName = ffi "(function(c){\
\return document.getElementsByClassName(e);})"

I think e should be c.

valderman commented 7 years ago

Good catch; thanks!