1{-# LANGUAGE FlexibleContexts #-}
2{-# LANGUAGE OverloadedStrings #-}
3module Obelisk.Command.Repl
8import Data.Monoid ((<>))
10import Obelisk.App (MonadObelisk)
11import Obelisk.Command.Project
13-- | Run an interactive repl within a given path
14runRepl :: MonadObelisk m => FilePath -> m ()
15runRepl dir = inProjectShell "ghc" $ "cd " <> dir <> "; cabal new-repl"
17-- | Watch the given directory for errors and warnings
18watch :: MonadObelisk m => FilePath -> m ()
19watch dir = inProjectShell "ghc" $ "cd " <> dir <> "; ghcid -W --command='cabal new-repl'"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list