Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Conversation

@ianbollinger
Copy link
Contributor

This commit implements a large portion of the https://www.w3.org/TR/uievents/ specification.

This commit implements a large portion of the
https://www.w3.org/TR/uievents/ specification.
import DOM.Event.Types (CompositionEvent, compositionEventToEvent, readCompositionEvent) as T

eventToCompositionEvent :: Event -> Maybe CompositionEvent
eventToCompositionEvent = _eventToCompositionEvent Just Nothing
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The FFI could be avoided for these kind of functions by using Data.Foreign.unsafeReadTagged (after toForeigning the Event).

@garyb
Copy link
Member

garyb commented Jul 22, 2016

Thanks for working on these! Could you update the coercions to use the unsafeReadTagged method please, and then I'll get it in 👍

This replaces the usage of the FFI for type coercions with
Data.Foreign.
@garyb
Copy link
Member

garyb commented Jul 22, 2016

Thanks!

@garyb garyb merged commit 0fbfc89 into purescript-deprecated:master Jul 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants