emacs-module-0.2: Utilities to write Emacs dynamic modules
Copyright(c) Sergey Vinokurov 2022
LicenseApache-2.0 (see LICENSE)
Maintainerserg.foo@gmail.com
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Emacs.Module.Env.ProcessInput

Description

 
Synopsis

Documentation

data Result Source #

Result of process_inputs Emacs API call.

Constructors

Continue 
Quit 

Instances

Instances details
Data Result Source # 
Instance details

Defined in Data.Emacs.Module.Env.ProcessInput

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Result -> c Result #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Result #

toConstr :: Result -> Constr #

dataTypeOf :: Result -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Result) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Result) #

gmapT :: (forall b. Data b => b -> b) -> Result -> Result #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Result -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Result -> r #

gmapQ :: (forall d. Data d => d -> u) -> Result -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Result -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Result -> m Result #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Result -> m Result #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Result -> m Result #

Generic Result Source # 
Instance details

Defined in Data.Emacs.Module.Env.ProcessInput

Associated Types

type Rep Result :: Type -> Type #

Methods

from :: Result -> Rep Result x #

to :: Rep Result x -> Result #

Show Result Source # 
Instance details

Defined in Data.Emacs.Module.Env.ProcessInput

Eq Result Source # 
Instance details

Defined in Data.Emacs.Module.Env.ProcessInput

Methods

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

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

Ord Result Source # 
Instance details

Defined in Data.Emacs.Module.Env.ProcessInput

Pretty Result Source # 
Instance details

Defined in Data.Emacs.Module.Env.ProcessInput

Methods

pretty :: Result -> Doc ann #

prettyList :: [Result] -> Doc ann #

Lift Result Source # 
Instance details

Defined in Data.Emacs.Module.Env.ProcessInput

Methods

lift :: Quote m => Result -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Result -> Code m Result #

type Rep Result Source # 
Instance details

Defined in Data.Emacs.Module.Env.ProcessInput

type Rep Result = D1 ('MetaData "Result" "Data.Emacs.Module.Env.ProcessInput" "emacs-module-0.2-GIOgS0MgcHfDyfvdtS8Z46" 'False) (C1 ('MetaCons "Continue" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Quit" 'PrefixI 'False) (U1 :: Type -> Type))

resultFromNum :: (Eq a, Num a) => a -> Maybe Result Source #