úÎɖż2¸      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ Ą˘Ł¤ĽŚ§ ¨ Š Ş Ť Ź ­ Ž Ż ° ą ˛ ł ´ ľ ś ˇ NoneOTAn iso which converts to/from ¸ -> TextAn iso which converts to/from ¸ -> StringAn iso which converts to/from ¸ -> [¸]None2OTš-A Helper only used when combining many spans.8A span which maps a piece of Monoidal data over a range.An Q represents an exact position in a file as a number of characters from the start. Ż(Coord Row Column) represents a char in a block of text. (zero indexed) e.g. Coord 0 0 is the first character in the text, Coord 2 1 is the second character of the third row 1This represents a range between two coordinates ( ) Moves a   by a given  q It may be unintuitive, but for (Coord row col) a given range will be moved down by row and to the right by col.)Moves a range forward by the given amountMoves a  ' forward by the given amount of columns+Adds the rows and columns of the given two  s.=Given the text you're operating over, creates an iso from an  to a  .ş1Given the text you're operating over, converts a   to an .ť2Given the text you're operating over, converts an  to a  .This will restrict a given  1 to a valid one which lies within the given text.This will restrict a given  1 to a valid one which lies within the given text.‰Combines a list of spans containing some monoidal data into a list of offsets with with the data that applies from each Offset forwards.clamp min max val3 restricts val to be within min and max (inclusive).Returns the number of rows and columns that a   spans as a  GReturns the number of rows and columns that a chunk of text spans as a   A lens over text before a given  A lens over text after a given  źš˝ž şť    źš˝ž   şťSafeAT(0A map of extension types to their current value.)DA wrapper around an extension of any type so it can be stored in an (()*+()*)*(()*+None /9;AIOT,zA buffer, holds the text in the buffer and any extension states that are set on the buffer. A buffer is the State of the  c monad transformer stack, so the type may be useful in defining lenses over your extension states./*Creates a new buffer from the givven text.,żŔÁ-./0)*,-./,)*-./,żŔÁ-./0NoneAOT1(This is the primary state of the editor.2ŘAn opaque reference to a buffer (The contained Int is not meant to be altered). It is possible for references to become stale if buffers are deleted. Operations over invalid BufRef's are simply ignored and return  if a value was expected.<<Q is a lens which will focus a given extension's state within a buffer (within a   Ç). The lens will automagically focus the required extension by using type inference. It's a little bit of magic, if you treat the focus as a member of your extension state it should just work out.(This lens falls back on the extension's Ă9 instance (when getting) if nothing has yet been stored.==Ô is a lens which will focus the extension state that matches the type inferred as the focal point. It's a little bit of magic, if you treat the focus as a member of your extension state it should just work out.(This lens falls back on the extension's Ă9 instance (when getting) if nothing has yet been stored.>+A lens over text which is encompassed by a  1ÄĹĆÇČ23789:É;<=>?@A 1237;:98<=>1789:;89:=<;>23 1ÄĹĆÇČ23789:É;<=>?@ANoneAT BIThis represents each modifier key that could be pressed along with a key.F}This event is dispatched in response to keyboard key presses. It contains both the char that was pressed and any modifiers (B+) that where held when the key was pressed.PbThis event is dispatched after adding a new buffer. The contained BufRef refers to the new buffer.RlThis event is dispatched before exiting the editor, listen for this to do any clean-up (saving files, etc.)T7This event is dispatched immediately after dispatching V.VKThis event is dispatched when it's time for extensions to render to screen.X=This event is dispatched immediately before dispatching the V event.ZkThis event is dispatched immediately before dispatching any events from asyncronous event listeners (like Fs)\÷The Event type represents a common denominator for all actions that could occur Event transmitters express events that have occured as a member of this type. At the moment it's quite sparse, but it will expand as new types of events are needed.@This event is dispatched exactly once when the editor starts up.BCDEFGHIJKLMNOPQRSTUVWXYZ[\]BDECFGHIJKLMNOPQRSTUVWXYZ[\]\]Z[XYVWTURSPQFGHIJKLMNOBCDE BCDEF GHIJKLMNOPQRSTUVWXYZ[\]None/AITu‰This is a monad-transformer stack for performing actions against the editor. You register Actions to be run in response to events using Within an Action you can:Use liftIO for IO5Access/edit extensions that are stored globally, see = Embed any us exported other extensionsEmbed buffer actions using  and DAdd/Edit/Focus buffers and a few other Editor-level things, see the  module.x:A map of Event types to a list of listeners for that eventy:A wrapper around event listeners so they can be stored in x.{9Unwrap and execute an Action (returning the editor state)|3Unwrap and evaluate an Action (returning the value)ƒ“This is a monad-transformer stack for performing actions on a specific buffer. You register BufActions to be run by embedding them in a scheduled u via bufferDo or focusDoWithin a BufAction you can:Use liftIO for IO#Access/edit buffer extensions; see <Embed and sequence any ƒs from other extensionsAccess/Edit the buffer's .Š<This lifts up a bufAction into an Action which performs the ƒK over the referenced buffer and returns the result (if the buffer existed)pqrstuvwxyz{|ƒ„…†‡ˆ‰Š‹ŒŽpqrstuvwxyz{|ƒ„…†‰‡ˆŠyzxuvw{|tpqrs†‡ˆ‰ŽŒ‹ƒ„…Špqrstuvwxyz{|ƒ„…†‡ˆ‰Š‹ŒŽNone2AIT •wThe Scheduler is how you can register your extension's actions to run at different points in the editor's event cycle.$The event cycle proceeds as follows: Ž Init (Runs ONCE) -- The following loops until an exit is triggered: BeforeEvent -> (any event) -> BeforeRender -> OnRender -> AfterRender Exit (Runs ONCE) 9Each extension which wishes to perform actions exports a • (). which the user inserts in their config file.˜žUse this to dispatch an event of any type, any hooks which are listening for this event will be triggered with the provided event. Use this within an Action.ĘlThis is a helper which extracts and coerces a hook from its wrapper back into the proper event handler type.™fThis extracts all event listener hooks from a map of hooks which match the type of the provided event.š]This registers an event listener hook, as long as the listener is well-typed similar to this:MyEventType -> Action ()Z then it will be registered to listen for dispatched events of that type. Use within the •. and add have the user add it to their config.› Transform a • monad into a x map.œDRegisters an action to be performed during the Initialization phase.9This phase occurs exactly ONCE when the editor starts up.<Registers an action to be performed BEFORE each event phase.ž=Registers an action to be performed BEFORE each render phase.œThis is a good spot to add information useful to the renderer since all actions have been performed. Only cosmetic changes should occur during this phase.Ÿ=Registers an action to be performed during each render phase.MThis phase should only be used by extensions which actually render something. <Registers an action to be performed AFTER each render phase.ˆThis is useful for cleaning up extension state that was registered for the renderer, but needs to be cleared before the next iteration.Ą:Registers an action to be performed during the exit phase.ÂThis is only triggered exactly once when the editor is shutting down. It allows an opportunity to do clean-up, kill any processes you've started, or save any data before the editor terminates.˘@Registers an action to be performed after a new buffer is added.,The supplied function will be called with a 2& to the new buffer, and the resulting u will be run.•–—˜Ę™š›œžŸ Ą˘xy•–—˜™š›œžŸ Ą˘•–—yx ž˜š›™ĄœŸ˘ •–—˜Ę™š›œžŸ Ą˘ None§˙This function takes an IO which results in some Event, it runs the IO asynchronously and dispatches the event, then repeats the process all over again. Use this inside the onInit scheduler to register an event listener for some event (e.g. keypresses or network activity)¨SdoAsync allows you to perform a task asynchronously and then apply the result. In doAsync asyncAction,  asyncAction˙k is an IO which resolves to an Action, note that the context in which the second action is executed is NOT the same context in which doAsync is called; it is likely that text and other state have changed while the IO executed, so it's a good idea to check (inside the applying Action) that things are in a good state before making changes. Here's an example: ˙>asyncCapitalize :: Action () asyncCapitalize = do txt <- focusDo $ use text -- We give doAsync an IO which resolves in an action doAsync $ ioPart txt ioPart :: Text -> IO (Action ()) ioPart txt = do result <- longAsyncronousCapitalizationProgram txt -- Note that this returns an Action, but it's still wrapped in IO return $ maybeApplyResult txt result maybeApplyResult :: Text -> Text -> Action () maybeApplyResult oldTxt capitalized = do -- We get the current buffer's text, which may have changed since we started newTxt <- focusDo (use text) if newTxt == oldTxt -- If the text is the same as it was, we can apply the transformation then focusDo (text .= capitalized) -- Otherwise we can choose to re-queue the whole action and try again -- Or we could just give up. else asyncCapitalize§¨§¨¨§§¨ NoneOT Š This lifts a   to an  which performs the  ; on every buffer and collects the return values as a list.Ť This lifts a   to an  which performs the  " on the buffer referred to by the 2: If the buffer referred to no longer exists this returns Action Nothing.­+This adds a new buffer with the given text.Ž"Returns an up-to-date list of all 2sŻ"Returns an up-to-date list of all ,…s, returned values are read-only; altering them has no effect on the actual stored bufferrs. This function is useful for renderers.°Gets 2" that comes after the one providedąGets 2# that comes before the one provided˛mThis signals to the editor that you'd like to shutdown. The current events will finish processing, then the + hook will run, then the editor will exit.ł4Deletes the text in the given range from the buffer.´5Replaces the text in the given range from the buffer.ľ0Inserts text into the buffer at the given Coord.śRRuns the given function over the text in the range, replacing it with the results.ŠŞŤŹ­ŽŻ°ą˛ł´ľśŠŞŤŹ­ŽŻ°ą˛ł´ľśŤŹŠŞ˛­ŽŻ°ąś´łľŠŞŤŹ­ŽŻ°ą˛ł´ľś(C) 2016 Chris PennerMIT+Chris Penner <christopher.penner@gmail.com>None:OTL ,.27<=>BDECFGHIJKLMNOuxyƒ•˜šœžŸ Ą˘§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśLu¨˛­°ąŽŻƒŤŹŠŞś´łľ=<,27.FGHIJKLMNOBCDE•xy˜š§œžŸ Ą˘ >  NoneAOTˇThe main function to run rasa. rasa eventProviders extensions@This should be imported by a user-config with and called with a •7 containing any extensions which have event listeners.  rasa $ do cursor vim slateËOThis is the main event loop, it runs recursively forever until something sets z. It runs the pre-event hooks, then checks if any async events have finished, then runs the post event hooks and repeats.ˇËˇˇˇËĚ !!""##$%&'()*+,-./0123456789:;<=>?@@ABCDEFGHHIJKLMNOPQRSTUVWXYZZ[\]^_`abccddeeffgghhiijklmnopqrstuvwxyz{||}~€‚‚ƒ„…†‡ˆ‰Š  ‹ŒŽ‘’“”•–—˜™š››œžŸ Ą˘Ł¤ĽŚ§¨Š Ş Ť Ź ­  Ž Ż ° ą ˛ ł ´ ľ ś ˇ ¸ šşťź˝žżŔÁÂBĂÄĹĆÇČÉĘGËĚÍÎĎĐ ŃŇ!rasa-0.1.5-5l7fzg7SPLNGT5ciCXlO1RRasa.Internal.TextRasa.Internal.RangeRasa.Internal.ExtensionsRasa.Internal.BufferRasa.Internal.EditorRasa.Internal.EventsRasa.Internal.ActionRasa.Internal.SchedulerRasa.Internal.AsyncRasa.Internal.DirectiveRasa BufAction Data.Action eventListenerRasa.Internal.Ext.DirectivebufDofocusDoRasa.Internal.Ext Directive Rasa.ActionActionRasa.Ext.ScheduleronExitRasa.Ext Rasa.EditorexitingasTextasStringasLinesSpan _getRange_dataOffsetCoordRange moveRange moveRangeByN moveCursorByN moveCursorasCoord clampCoord clampRange combineSpansclampsizeOfRsizeOfbeforeCafterC $fNumCoord $fOrdCoord $fOrdRange $fShowCoord $fEqCoord $fShowRange $fEqRange $fShowOffset $fEqOffset $fShowSpan$fEqSpan $fFunctorSpan $fShowMarker $fEqMarkerExtMapExt $fShowExtBufferbufExtstextmkBuffer $fShowBufferEditorBufRef $fShowBufRef $fEqBufRef $fOrdBufRef HasEditoreditorbuffers nextBufIdbufExtextrange$fDefaultEditor $fShowEditor$fHasEditorEditorModCtrlAltShiftKeypressKEscKBSKEnterKUnknownKLeftKRightKUpKDownBufAddedExit AfterRenderOnRender BeforeRender BeforeEventInit $fShowInit$fEqInit$fShowBeforeEvent$fEqBeforeEvent$fShowBeforeRender$fEqBeforeRender$fShowOnRender $fEqOnRender$fShowAfterRender$fEqAfterRender $fShowExit$fEqExit$fShowBufAdded $fEqBufAdded $fShowMod$fEqMod$fShowKeypress $fEqKeypress ActionState_ed_asyncs AsyncActionrunActHooksHook execAction evalAction$fFunctorAction$fApplicativeAction $fMonadAction$fMonadStateAction$fMonadReaderAction$fMonadIOAction getBufActionHasActionState actionStateasyncsedliftBuf$fShowActionState$fDefaultActionState$fHasEditorActionState$fHasActionStateActionState$fFunctorBufAction$fApplicativeBufAction$fMonadBufAction$fMonadStateBufAction$fMonadReaderBufAction$fMonadIOBufAction SchedulerrunSched dispatchEvent matchingHooksgetHooksonInit beforeEvent beforeRenderonRender afterRender onBufAdded$fFunctorScheduler$fApplicativeScheduler$fMonadScheduler$fMonadStateScheduler eventProviderdoAsync buffersDo buffersDo_bufDo_ newBuffer getBufRefs getBuffers nextBufRef prevBufRefexit deleteRange replaceRangeinsertAt overRangerasa$yi-rope-0.7.0.2-4e29TpEi6l7hStEfnaGSYi.RopeYiStringMarkertoOffsettoCoordIDStartEnd_text_bufExtsbaseGHC.BaseNothing1data-default-class-0.1.2.0-FYQpjIylblBDctdkHAFeXAData.Default.ClassDefault_buffers_exiting _extState _nextBufIdextStategetHook eventLoop