-
Notifications
You must be signed in to change notification settings - Fork 89
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
Make Automatic serialize lists and tuples #251
Comments
Note that ideally this would convert lists of chars into js strings. Here's an example application of this, for a better JQuery API: class Selectable a where
instance Selectable String
instance Selectable Text
instance Selectable Element
instance Selectable [Element]
instance Selectable JQuery
select :: Selectable a => Automatic a -> Fay JQuery
select = ffi "$(%1)" |
… a, Automatic [a], and Automatic (,) (fixes #251)
This has been dangling for quite a while :( I'm not sure if I'm covering all the cases here, anyone see any tests that should be added? |
@mgsloan the problem with Automatic String is that we won't be able to tell whether |
… a, Automatic [a], and Automatic (,) (fixes #251)
Automatic
only serializesdata
-declared non-parametric data types. People want lists and tuples to work:#244
#250
Someone's gonna have to extend the
Automatic
serialization for lists, tuples, etc. It should be just a case oftypeof x == Fay$$Cons
conditions.The text was updated successfully, but these errors were encountered: