• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

bit-void/light-haskell: Haskell plugin for LightTable

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

bit-void/light-haskell

开源软件地址(OpenSource Url):

https://github.com/bit-void/light-haskell

开源编程语言(OpenSource Language):

JavaScript 87.4%

开源软件介绍(OpenSource Introduction):

Status

Due to the lack of progress on LightTable, I'm no longer maintaining this plugin. Feel free to fork if you'd like to continue work.

Haskell plugin for LightTable

Currently it supports:

  • Hoogling via ctrl-shift-d and selecting hsh (default)
  • Hayooing via ctrl-shift-d and selecting hsy (this gives weird results right now)
  • Hoogling inline via ctrl-d
  • Stylish haskell via sidebar "Haskell: Reformat file"
  • Syntax checking via sidebar "Haskell: Check syntax"
  • Linting via sidebar "Haskell: Check lint"
  • Evaluating the current line or selection via ctrl-enter or cmd-enter
  • Get type of expression via sidebar "Haskell: Get the type of a form in editor"

Requirements

A recent version of cabal that supports sandbox, run, and repl. This must be on a load path that LightTable can read.

Installation

Install using the plugin manager.

Contributing

This plugin is in the early stages, and can use any kind of help. The best place to start is the issues. I've marked things as easy that should be, well, easy. Feel free to comment on any issue asking for help/direction.

The best way to get going is to install this plugin by checking it out (or symlink it) into the plugins directory of your LightTable installation. For example, on OS X:

cd /Applications/LightTable.app/Contents/Resources/app.nw/plugins
git clone [email protected]:jetaggart/light-haskell.git haskell

The plugin directory must be named haskell due to LightTable plugin load paths.

Restart LightTable, and run the command (ctrl-space) Show plugin manager. You should see Haskell as an installed plugin. After, simply go to a haskell file and start running the commands. The plugin bootstraps itself and builds the executable, so give it a minute the first time around. If you don't see what you expect after running a command and waiting a bit, try restarting LightTable. If you still are having trouble, please look at the bottom bar for errors and don't hesitate to submit an issue or help out.

To add functionality, I usually start with testing the haskell client with the ruby server that simulates LightTable. Start by going into the plugin dir and run:

ruby test_server.rb
./run-server.sh 5555 456 .

The ruby script will fire off various commands to the haskell client. You can check it's output to see that it succeeds (or fails). From there, I just figure out how to make LightTable send the data in the format I need it.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap