forked from haskell/haskell-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEval.hs
33 lines (26 loc) · 877 Bytes
/
Eval.hs
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
28
29
30
31
32
33
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -Wwarn #-}
{- |
A plugin inspired by:
* the REPLoid feature of <https://github.com/jyp/dante Dante>
* <https://www.haskell.org/haddock/doc/html/ch03s08.html#idm140354810775744 Haddock>'s Examples and Properties
* <https://hackage.haskell.org/package/doctest Doctest>
See the "Ide.Plugin.Eval.Tutorial" module for a full introduction to the plugin functionality.
-}
module Ide.Plugin.Eval (
descriptor,
) where
import qualified Ide.Plugin.Eval.CodeLens as CL
import Ide.Types (
PluginDescriptor (..),
PluginId,
defaultPluginDescriptor,
)
-- |Plugin descriptor
descriptor :: PluginId -> PluginDescriptor
descriptor plId =
(defaultPluginDescriptor plId)
{ pluginCodeLensProvider = Just CL.codeLens
, pluginCommands = [CL.evalCommand]
}