Skip to content

Commit 9ed07ec

Browse files
committed
Use the initialAce state from #4
1 parent e33508a commit 9ed07ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/src/Main.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Prelude
44

55
import Ace.Editor as Editor
66
import Ace.EditSession as Session
7-
import Ace.Halogen.Component (AceState (), AceQuery ())
7+
import Ace.Halogen.Component (AceState (), AceQuery (), initialAceState)
88
import qualified Ace.Halogen.Component as Ace
99

1010
import Control.Monad.Aff (Aff (), runAff)
@@ -72,7 +72,7 @@ ui = parentComponent render eval
7272
)
7373
Nothing
7474
, initialState :
75-
{ key : Nothing, editor : Nothing }
75+
initialAceState
7676
}
7777
, H.div_
7878
[ H.text state.text ]

0 commit comments

Comments
 (0)