summaryrefslogtreecommitdiff
path: root/src/Main.hs
blob: 321f23f05ab2703e0531ae13fdaa25d8b415ac62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
-- | "Real" Frontend to the static binary.

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 = do
    cfg <- execStateT configure defaultConfig
    yiDriver' True cfg
    where
    configure = runConfigM $ do
        configureVty
        configureEmacs
        configureHaskellMode
        configureJavaScriptMode
        configureMiscModes