{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE CPP #-}
module Bridge where
import Prelude
import Data.Data
data EventHandler a
= OnKeyDown !a
| OnKeyUp !a
| OnKeyPress !a
| OnFocus !a
| OnBlur !a
| OnValueChange !a
| OnCheckedChange !a
| OnSelectedChange !a
| OnSubmit !a
| OnClick !a
| OnDoubleClick !a
| OnMouseDown !a
| OnMouseUp !a
| OnMouseMove !a
| OnMouseEnter !a
| OnMouseLeave !a
| OnMouseOver !a
| OnMouseOut !a
| OnScroll !a
| OnWheel !a
#ifdef FAY
deriving (Typeable, Data)
#else
deriving (Functor, Typeable, Data)
#endif
data CallbackAction a = CallbackAction (EventHandler a)
#ifdef FAY
deriving (Typeable, Data)
#else
deriving (Typeable, Data)
#endif