Safe Haskell | None |
---|---|
Language | Haskell2010 |
Basic support for using the Ace editor with Reflex.
Synopsis
- data AceTheme
- = AceTheme_Chrome
- | AceTheme_Clouds
- | AceTheme_CrimsonEditor
- | AceTheme_Dawn
- | AceTheme_Dreamweaver
- | AceTheme_Eclipse
- | AceTheme_Github
- | AceTheme_Iplastic
- | AceTheme_SolarizedLight
- | AceTheme_Textmate
- | AceTheme_Tomorrow
- | AceTheme_Xcode
- | AceTheme_Kuroir
- | AceTheme_Katzenmilch
- | AceTheme_Sqlserver
- | AceTheme_Ambiance
- | AceTheme_Chaos
- | AceTheme_CloudsMidnight
- | AceTheme_Cobalt
- | AceTheme_Gruvbox
- | AceTheme_IdleFingers
- | AceTheme_KrTheme
- | AceTheme_Merbivore
- | AceTheme_MerbivoreSoft
- | AceTheme_MonoIndustrial
- | AceTheme_Monokai
- | AceTheme_PastelOnDark
- | AceTheme_SolarizedDark
- | AceTheme_Terminal
- | AceTheme_TomorrowNight
- | AceTheme_TomorrowNightBlue
- | AceTheme_TomorrowNightBright
- | AceTheme_TomorrowNightEighties
- | AceTheme_Twilight
- | AceTheme_VibrantInk
- data AceConfig = AceConfig {}
- data AceDynConfig = AceDynConfig {}
- newtype AceInstance = AceInstance {}
- data Ace t = Ace {}
- data AnnotationType
- data Annotation = Annotation {}
- startAce :: MonadJSM m => Text -> AceConfig -> m AceInstance
- moveCursorToPosition :: MonadJSM m => (Int, Int) -> AceInstance -> m ()
- setThemeAce :: MonadJSM m => Maybe AceTheme -> AceInstance -> m ()
- setModeAce :: MonadJSM m => Text -> AceInstance -> m ()
- setUseWrapMode :: MonadJSM m => Bool -> AceInstance -> m ()
- setShowPrintMargin :: MonadJSM m => Bool -> AceInstance -> m ()
- setUseWorker :: MonadJSM m => Bool -> AceInstance -> m ()
- setAnnotations :: MonadJSM m => [Annotation] -> AceInstance -> m ()
- setConfigAce :: MonadJSM m => Text -> Text -> AceInstance -> m ()
- getValueAce :: MonadJSM m => AceInstance -> m Text
- setValueAce :: MonadJSM m => Text -> AceInstance -> m ()
- setupValueListener :: (MonadJSM (Performable m), DomBuilder t m, PostBuild t m, TriggerEvent t m, PerformEvent t m) => AceInstance -> m (Event t Text)
- aceWidget :: (DomBuilder t m, PostBuild t m, MonadHold t m, MonadJSM m, TriggerEvent t m, PerformEvent t m, MonadJSM (Performable m)) => AceConfig -> AceDynConfig -> Event t AceDynConfig -> Text -> Text -> Event t Text -> m (Ace t)
- withAceInstance :: PerformEvent t m => Ace t -> Event t (AceInstance -> Performable m ()) -> m (Event t ())
- withAceInstance' :: PerformEvent t m => Ace t -> Event t (Maybe AceInstance -> Performable m a) -> m (Event t a)
Documentation
Instances
Bounded AceTheme Source # | |
Enum AceTheme Source # | |
Eq AceTheme Source # | |
Ord AceTheme Source # | |
Defined in Reflex.Dom.Ace | |
Show AceTheme Source # | |
newtype AceInstance Source #
data AnnotationType Source #
Instances
Read AnnotationType Source # | |
Defined in Reflex.Dom.Ace readsPrec :: Int -> ReadS AnnotationType # readList :: ReadS [AnnotationType] # | |
Show AnnotationType Source # | |
Defined in Reflex.Dom.Ace showsPrec :: Int -> AnnotationType -> ShowS # show :: AnnotationType -> String # showList :: [AnnotationType] -> ShowS # | |
ToJSVal AnnotationType Source # | |
Defined in Reflex.Dom.Ace toJSVal :: AnnotationType -> JSM JSVal # toJSValListOf :: [AnnotationType] -> JSM JSVal # |
data Annotation Source #
Instances
Read Annotation Source # | |
Defined in Reflex.Dom.Ace readsPrec :: Int -> ReadS Annotation # readList :: ReadS [Annotation] # readPrec :: ReadPrec Annotation # readListPrec :: ReadPrec [Annotation] # | |
Show Annotation Source # | |
Defined in Reflex.Dom.Ace showsPrec :: Int -> Annotation -> ShowS # show :: Annotation -> String # showList :: [Annotation] -> ShowS # | |
ToJSVal Annotation Source # | |
Defined in Reflex.Dom.Ace toJSVal :: Annotation -> JSM JSVal # toJSValListOf :: [Annotation] -> JSM JSVal # | |
MakeObject Annotation Source # | |
Defined in Reflex.Dom.Ace makeObject :: Annotation -> JSM Object # |
moveCursorToPosition :: MonadJSM m => (Int, Int) -> AceInstance -> m () Source #
setThemeAce :: MonadJSM m => Maybe AceTheme -> AceInstance -> m () Source #
setModeAce :: MonadJSM m => Text -> AceInstance -> m () Source #
setUseWrapMode :: MonadJSM m => Bool -> AceInstance -> m () Source #
setShowPrintMargin :: MonadJSM m => Bool -> AceInstance -> m () Source #
setUseWorker :: MonadJSM m => Bool -> AceInstance -> m () Source #
setAnnotations :: MonadJSM m => [Annotation] -> AceInstance -> m () Source #
setConfigAce :: MonadJSM m => Text -> Text -> AceInstance -> m () Source #
getValueAce :: MonadJSM m => AceInstance -> m Text Source #
setValueAce :: MonadJSM m => Text -> AceInstance -> m () Source #
setupValueListener :: (MonadJSM (Performable m), DomBuilder t m, PostBuild t m, TriggerEvent t m, PerformEvent t m) => AceInstance -> m (Event t Text) Source #
:: (DomBuilder t m, PostBuild t m, MonadHold t m, MonadJSM m, TriggerEvent t m, PerformEvent t m, MonadJSM (Performable m)) | |
=> AceConfig | Ace editor configurations |
-> AceDynConfig | Ace editor theme |
-> Event t AceDynConfig | Updatable Ace editor theme |
-> Text | ID of desired container element |
-> Text | Initial Ace editor contents |
-> Event t Text | Updatable Ace editor contents |
-> m (Ace t) |
Main entry point
IMPORTANT NOTE:
This currently does not work if your app is using reflex-dom's mainWidgetWithHead or mainWidgetWithCss.
withAceInstance :: PerformEvent t m => Ace t -> Event t (AceInstance -> Performable m ()) -> m (Event t ()) Source #
Convenient helper function for running functions that need an AceInstance.
withAceInstance' :: PerformEvent t m => Ace t -> Event t (Maybe AceInstance -> Performable m a) -> m (Event t a) Source #
More powerful function for running functions that need an AceInstance.