Skip to content

Commit af65866

Browse files
Export insertLines
1 parent e220c91 commit af65866

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Ace/Document.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module Ace.Document
1515
, insert
1616
, insertNewLine
1717
, insertInLine
18+
, insertLines
1819
, remove
1920
, removeInLine
2021
, removeNewLine

src/Ace/EditSession.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ module Ace.EditSession
109109

110110
import Prelude
111111

112-
import Ace.Types (Marker, EditSession, TextMode, Position, Range, Annotation, UndoManager, TokenInfo, Selection, Document, BackgroundTokenizer)
112+
import Ace.Types (Marker, DocumentEvent, EditSession, TextMode, Position, Range, Annotation, UndoManager, TokenInfo, Selection, Document, BackgroundTokenizer)
113113
import Control.Monad.ST (ST)
114114
import Data.Array.ST (STArray)
115115
import Data.Function.Uncurried (Fn2, runFn2, Fn3, runFn3, Fn4, runFn4, Fn5, runFn5)
@@ -122,7 +122,7 @@ foreign import getBackgroundTokenizer :: EditSession -> Effect BackgroundTokeniz
122122

123123
foreign import onImpl :: forall ev a. Fn3 String (ev -> Effect a) EditSession (Effect Unit)
124124

125-
onChange :: forall a. EditSession -> ({ action :: String, start :: { row :: Int, column :: Int }, end :: { row :: Int, column :: Int }, lines :: Array String } -> Effect a) -> Effect Unit
125+
onChange :: forall a. EditSession -> (DocumentEvent -> Effect a) -> Effect Unit
126126
onChange self fn = runFn3 onImpl "change" fn self
127127

128128
onChangeAnnotation :: forall a. EditSession -> Effect a -> Effect Unit

0 commit comments

Comments
 (0)