Skip to content

Commit acaba05

Browse files
authored
Merge pull request #191 from pepeiborra/eval
Simple Eval plugin
2 parents 751428c + 184d0bd commit acaba05

23 files changed

+558
-6
lines changed

.gitignore

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dist-newstyle
22
.stack-work
3-
hie.yaml
3+
/hie.yaml
44
cabal.project.local
55
*~
66
*.lock
@@ -19,8 +19,5 @@ shake.yaml.lock
1919
stack*.yaml.lock
2020
shake.yaml.lock
2121

22-
# ignore hie.yaml's for testdata
23-
test/**/*.yaml
24-
2522
# metadata files on macOS
2623
.DS_Store

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ background](https://neilmitchell.blogspot.com/2020/01/one-haskell-ide-to-rule-th
1515
This is *very* early stage software.
1616

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

47+
## Features
48+
49+
- Code evaluation (inspired by [Dante](https://github.com/jyp/dante#-reploid))
50+
51+
![Eval](https://i.imgur.com/bh992sT.gif)
52+
53+
- Many more (TBD)
54+
4655
## Installation
4756

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

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

496505
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.).

exe/Main.hs

+2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ import Development.IDE.Plugin.Completions as Completions
9797
import Development.IDE.LSP.HoverDefinition as HoverDefinition
9898

9999
-- haskell-language-server plugins
100+
import Ide.Plugin.Eval as Eval
100101
import Ide.Plugin.Example as Example
101102
import Ide.Plugin.Example2 as Example2
102103
import Ide.Plugin.GhcIde as GhcIde
@@ -143,6 +144,7 @@ idePlugins includeExamples = pluginDescToIdePlugins allPlugins
143144
#if AGPL
144145
, Brittany.descriptor "brittany"
145146
#endif
147+
, Eval.descriptor "eval"
146148
]
147149
examplePlugins =
148150
[Example.descriptor "eg"

haskell-language-server.cabal

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ library
4242
Ide.Logger
4343
Ide.Plugin
4444
Ide.Plugin.Config
45+
Ide.Plugin.Eval
4546
Ide.Plugin.Example
4647
Ide.Plugin.Example2
4748
Ide.Plugin.GhcIde
@@ -85,7 +86,9 @@ library
8586
, regex-tdfa >= 1.3.1.0
8687
, shake >= 0.17.5
8788
, stylish-haskell == 0.11.*
89+
, temporary
8890
, text
91+
, time
8992
, transformers
9093
, unordered-containers
9194
if os(windows)
@@ -271,6 +274,7 @@ test-suite func-test
271274
, Deferred
272275
, Definition
273276
, Diagnostic
277+
, Eval
274278
, Format
275279
, FunctionalBadProject
276280
, FunctionalCodeAction

0 commit comments

Comments
 (0)