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

Commit

Permalink
Merge pull request #53 from eskimor/reanimateMessageEvent
Browse files Browse the repository at this point in the history
Reanimate MessageEvent - got lost
  • Loading branch information
garyb authored Jun 21, 2016
2 parents 43b72c8 + 832414d commit 88f8a54
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/DOM/Websocket/Event/Types.purs
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,14 @@ readCloseEvent = unsafeReadTagged "CloseEvent"

instance isForeignCloseEvent :: IsForeign CloseEvent where
read = readCloseEvent

foreign import data MessageEvent :: *

messageEventToEvent :: MessageEvent -> Event
messageEventToEvent = U.unsafeCoerce

readMessageEvent :: Foreign -> F MessageEvent
readMessageEvent = unsafeReadTagged "MessageEvent"

instance isForeignMessageEvent :: IsForeign MessageEvent where
read = readMessageEvent

0 comments on commit 88f8a54

Please sign in to comment.