summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitryIvanov <>2016-10-02 17:33:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2016-10-02 17:33:00 (GMT)
commit50d562cf73df4dceba9669b12e9fdc65a7c559a3 (patch)
tree25799f9eb5cffbf07367ab52dbd74199d3b95ade
parentb67759d37d8d34fb56bb4ced4d72ba1ca0472fe8 (diff)
version 0.13.0.20.13.0.2
-rw-r--r--src/Main.hs20
-rw-r--r--yi.cabal10
2 files changed, 27 insertions, 3 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 30255ba..321f23f 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -2,8 +2,26 @@
module Main (main) where
+import Control.Monad.State
+
import Yi.Boot (yiDriver')
import Yi.Config.Default (defaultConfig)
+import Yi.Config.Default.Vty
+import Yi.Config.Default.Emacs
+import Yi.Config.Default.HaskellMode
+import Yi.Config.Default.JavaScriptMode
+import Yi.Config.Default.MiscModes
+import Yi.Config.Simple.Types
+
main :: IO ()
-main = yiDriver' True defaultConfig
+main = do
+ cfg <- execStateT configure defaultConfig
+ yiDriver' True cfg
+ where
+ configure = runConfigM $ do
+ configureVty
+ configureEmacs
+ configureHaskellMode
+ configureJavaScriptMode
+ configureMiscModes \ No newline at end of file
diff --git a/yi.cabal b/yi.cabal
index bb9a7ec..ded9f5d 100644
--- a/yi.cabal
+++ b/yi.cabal
@@ -3,7 +3,7 @@
-- see: https://github.com/sol/hpack
name: yi
-version: 0.13.0.1
+version: 0.13.0.2
synopsis: Yi editor
category: Yi
homepage: https://github.com/yi-editor/yi#readme
@@ -21,8 +21,14 @@ executable yi
main-is: Main.hs
hs-source-dirs:
src
- ghc-options: -Wall -ferror-spans
+ ghc-options: -Wall -ferror-spans -threaded
build-depends:
base >= 4.8 && < 5
+ , mtl >= 2.2
, yi-core >= 0.13
+ , yi-frontend-vty >= 0.13
+ , yi-keymap-emacs >= 0.13
+ , yi-mode-haskell >= 0.13
+ , yi-mode-javascript >= 0.13
+ , yi-misc-modes >= 0.13
default-language: Haskell2010