Skip to content

Simple Eval plugin #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dist-newstyle
.stack-work
hie.yaml
/hie.yaml
cabal.project.local
*~
*.lock
Expand All @@ -19,8 +19,5 @@ shake.yaml.lock
stack*.yaml.lock
shake.yaml.lock

# ignore hie.yaml's for testdata
test/**/*.yaml

# metadata files on macOS
.DS_Store
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ background](https://neilmitchell.blogspot.com/2020/01/one-haskell-ide-to-rule-th
This is *very* early stage software.

- [Haskell Language Server (HLS)](#haskell-language-server)
- [Features](#features)
- [Installation](#installation)
- [Installation from source](#installation-from-source)
- [Common pre-requirements](#common-pre-requirements)
Expand Down Expand Up @@ -43,6 +44,14 @@ This is *very* early stage software.
- [Contributing](#contributing)
- [It's time to join the project!](#its-time-to-join-the-project)

## Features

- Code evaluation (inspired by [Dante](https://github.com/jyp/dante#-reploid))

![Eval](https://i.imgur.com/bh992sT.gif)

- Many more (TBD)

## Installation

For now only installation from source is supported.
Expand Down Expand Up @@ -490,7 +499,7 @@ args = ["--lsp"]
## Known limitations

### Preprocessor
HLS is not yet able to find project preprocessors, which may result in `could not execute: <preprocessor>` errors. This problem is
HLS is not yet able to find project preprocessors, which may result in `could not execute: <preprocessor>` errors. This problem is
tracked in https://github.com/haskell/haskell-language-server/issues/176 and originally comes from https://github.com/mpickering/hie-bios/issues/125

As a workaround, you need to ensure the preprocessor is available in the path (install globally with Stack or Cabal, provide in `shell.nix`, etc.).
Expand Down
2 changes: 2 additions & 0 deletions exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ import Development.IDE.Plugin.Completions as Completions
import Development.IDE.LSP.HoverDefinition as HoverDefinition

-- haskell-language-server plugins
import Ide.Plugin.Eval as Eval
import Ide.Plugin.Example as Example
import Ide.Plugin.Example2 as Example2
import Ide.Plugin.GhcIde as GhcIde
Expand Down Expand Up @@ -143,6 +144,7 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
#if AGPL
, Brittany.descriptor "brittany"
#endif
, Eval.descriptor "eval"
]
examplePlugins =
[Example.descriptor "eg"
Expand Down
4 changes: 4 additions & 0 deletions haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ library
Ide.Logger
Ide.Plugin
Ide.Plugin.Config
Ide.Plugin.Eval
Ide.Plugin.Example
Ide.Plugin.Example2
Ide.Plugin.GhcIde
Expand Down Expand Up @@ -85,7 +86,9 @@ library
, regex-tdfa >= 1.3.1.0
, shake >= 0.17.5
, stylish-haskell == 0.11.*
, temporary
, text
, time
, transformers
, unordered-containers
if os(windows)
Expand Down Expand Up @@ -271,6 +274,7 @@ test-suite func-test
, Deferred
, Definition
, Diagnostic
, Eval
, Format
, FunctionalBadProject
, FunctionalCodeAction
Expand Down
Loading