| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Emacs.Core
Documentation
module Emacs.Internal
mkCons :: (ToEmacsValue a, ToEmacsValue b) => a -> b -> EmacsM EmacsCons Source #
class ToEmacsValue h where Source #
Minimal complete definition
Methods
toEv :: h -> EmacsM EmacsValue Source #
Instances
| ToEmacsValue Bool Source # | |
| ToEmacsValue Int Source # | |
| ToEmacsValue () Source # | |
| ToEmacsValue Text Source # | |
| ToEmacsValue Keyword Source # | |
| ToEmacsValue Symbol Source # | |
| ToEmacsValue EmacsList Source # | |
| ToEmacsValue EmacsFunction Source # | |
| ToEmacsValue EmacsCons Source # | |
| ToEmacsValue EmacsKeyword Source # | |
| ToEmacsValue EmacsSymbol Source # | |
| ToEmacsValue EmacsValue Source # | |
| ToEmacsValue h => ToEmacsValue [h] Source # | |
| (FromEmacsValue a, Callable b) => ToEmacsValue (a -> b) Source # | |
| (ToEmacsValue a, ToEmacsValue b) => ToEmacsValue (a, b) Source # | |
class ToEmacsValue s => ToEmacsSymbol s where Source #
Minimal complete definition
Methods
toEmacsSymbol :: s -> EmacsM EmacsSymbol Source #
Instances
class (Callable s, ToEmacsValue s) => ToEmacsFunction s where Source #
Minimal complete definition
Methods
toEmacsFunction :: s -> EmacsM EmacsFunction Source #
Instances
| ToEmacsFunction EmacsFunction Source # | |
| (FromEmacsValue a, Callable b) => ToEmacsFunction (a -> b) Source # | |
funcall1 :: ToEmacsValue a => Text -> a -> EmacsM EmacsValue Source #
funcall2 :: (ToEmacsValue a, ToEmacsValue b) => Text -> a -> b -> EmacsM EmacsValue Source #
funcall3 :: (ToEmacsValue a, ToEmacsValue b, ToEmacsValue c) => Text -> a -> b -> c -> EmacsM EmacsValue Source #
mkFunctionFromCallable :: Callable f => f -> EmacsM EmacsValue Source #
class Callable a where Source #
Methods
call :: a -> [EmacsValue] -> EmacsM (Either Text EmacsValue) Source #
car :: EmacsValue -> EmacsM EmacsValue Source #
cdr :: EmacsValue -> EmacsM EmacsValue Source #
evalString :: Text -> EmacsM EmacsValue Source #
print :: ToEmacsValue v => v -> EmacsM () Source #