Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

synonym type for String does not become Javascript String #382

Closed
dlee opened this issue Jan 14, 2014 · 1 comment
Closed

synonym type for String does not become Javascript String #382

dlee opened this issue Jan 14, 2014 · 1 comment

Comments

@dlee
Copy link

dlee commented Jan 14, 2014

type String' = String

putString' :: String' -> Fay ()
putString' = ffi "console.log(%1)"

main :: Fay ()
main = do
  putString' "hi"

expected result:

"hi"

actual result:

["h", "i"]
@bergmark
Copy link
Member

This is a long standing issue, #185. Type aliases are fine to use, but not in FFI signatures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants