miso-1.8.1.0: A tasty Haskell front-end framework
Copyright(C) 2016-2018 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <djohnson.m@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Event.Types

Description

 
Synopsis

Documentation

data KeyInfo Source #

Type useful for both KeyCode and additional key press information.

Constructors

KeyInfo 

Instances

Instances details
Eq KeyInfo Source # 
Instance details

Defined in Miso.Event.Types

Methods

(==) :: KeyInfo -> KeyInfo -> Bool #

(/=) :: KeyInfo -> KeyInfo -> Bool #

Show KeyInfo Source # 
Instance details

Defined in Miso.Event.Types

newtype KeyCode Source #

Constructors

KeyCode Int 

Instances

Instances details
Eq KeyCode Source # 
Instance details

Defined in Miso.Event.Types

Methods

(==) :: KeyCode -> KeyCode -> Bool #

(/=) :: KeyCode -> KeyCode -> Bool #

Ord KeyCode Source # 
Instance details

Defined in Miso.Event.Types

Show KeyCode Source # 
Instance details

Defined in Miso.Event.Types

FromJSON KeyCode Source # 
Instance details

Defined in Miso.Event.Types

newtype Checked Source #

Type used for Checkbox events.

Constructors

Checked Bool 

Instances

Instances details
Eq Checked Source # 
Instance details

Defined in Miso.Event.Types

Methods

(==) :: Checked -> Checked -> Bool #

(/=) :: Checked -> Checked -> Bool #

Ord Checked Source # 
Instance details

Defined in Miso.Event.Types

Show Checked Source # 
Instance details

Defined in Miso.Event.Types

FromJSON Checked Source # 
Instance details

Defined in Miso.Event.Types

data Options Source #

Options for handling event propagation.

Constructors

Options 

Instances

Instances details
Eq Options Source # 
Instance details

Defined in Miso.Event.Types

Methods

(==) :: Options -> Options -> Bool #

(/=) :: Options -> Options -> Bool #

Show Options Source # 
Instance details

Defined in Miso.Event.Types

Generic Options Source # 
Instance details

Defined in Miso.Event.Types

Associated Types

type Rep Options :: Type -> Type #

Methods

from :: Options -> Rep Options x #

to :: Rep Options x -> Options #

ToJSVal Options Source # 
Instance details

Defined in Miso.Event.Types

type Rep Options Source # 
Instance details

Defined in Miso.Event.Types

type Rep Options = D1 ('MetaData "Options" "Miso.Event.Types" "miso-1.8.1.0-8YfSnaPsH2GA5cfqeBIDt9" 'False) (C1 ('MetaCons "Options" 'PrefixI 'True) (S1 ('MetaSel ('Just "preventDefault") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "stopPropagation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))

defaultOptions :: Options Source #

Default value for Options.

defaultOptions = Options { preventDefault = False, stopPropagation = False }

newtype AllowDrop Source #

Related to using drop-related events

Constructors

AllowDrop Bool 

Instances

Instances details
Eq AllowDrop Source # 
Instance details

Defined in Miso.Event.Types

Show AllowDrop Source # 
Instance details

Defined in Miso.Event.Types

FromJSON AllowDrop Source # 
Instance details

Defined in Miso.Event.Types

defaultEvents :: Map MisoString Bool Source #

Default delegated events