You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see references to fromInteger in Prelude, which if I understood correctly is for changing types for GHC. However there is no handling for them on the javascript-side. I haven't tested, but I assume fromRational suffers from the same problem.
{-# LANGUAGE NoImplicitPrelude #-}
module Test where
import Language.Fay.Prelude
import Language.Fay.FFI
print :: Foreign a => a -> Fay ()
print = foreignFay "console.log" ""
main :: Fay ()
main = print $ show $ fromInteger 5
ReferenceError: fromInteger is not defined
The text was updated successfully, but these errors were encountered:
Right, I suppose we perfectly reasonably define fromInteger and fromRational to be id or something on the JS side. There's only Doubles in JS, so we don't have to care about different number types.
I see references to fromInteger in Prelude, which if I understood correctly is for changing types for GHC. However there is no handling for them on the javascript-side. I haven't tested, but I assume fromRational suffers from the same problem.
ReferenceError: fromInteger is not defined
The text was updated successfully, but these errors were encountered: