psc-ide

所属分类:代码编辑器
开发工具:Haskell
文件大小:36KB
下载次数:0
上传日期:2016-03-05 04:14:41
上 传 者sh-1993
说明:  弃用-编辑器对PureScript编程语言的支持
(DEPRECATED - Editor Support for the PureScript programming language)

文件列表:
.dir-locals.el (356, 2016-03-05)
.travis.yml (532, 2016-03-05)
LICENSE (1101, 2016-03-05)
PROTOCOL.md (8058, 2016-03-05)
Setup.hs (46, 2016-03-05)
bundle (0, 2016-03-05)
bundle\build.sh (828, 2016-03-05)
client (0, 2016-03-05)
client\Main.hs (1686, 2016-03-05)
examples (0, 2016-03-05)
examples\Main.purs (4397, 2016-03-05)
psc-ide.cabal (3580, 2016-03-05)
server (0, 2016-03-05)
server\Main.hs (5295, 2016-03-05)
src (0, 2016-03-05)
src\PureScript (0, 2016-03-05)
src\PureScript\Ide.hs (6548, 2016-03-05)
src\PureScript\Ide (0, 2016-03-05)
src\PureScript\Ide\CaseSplit.hs (5625, 2016-03-05)
src\PureScript\Ide\CodecJSON.hs (349, 2016-03-05)
src\PureScript\Ide\Command.hs (3267, 2016-03-05)
src\PureScript\Ide\Completion.hs (1446, 2016-03-05)
src\PureScript\Ide\Error.hs (1485, 2016-03-05)
src\PureScript\Ide\Externs.hs (3376, 2016-03-05)
src\PureScript\Ide\Filter.hs (3682, 2016-03-05)
src\PureScript\Ide\Internal (0, 2016-03-05)
src\PureScript\Ide\Internal\Sandbox.hs (2877, 2016-03-05)
src\PureScript\Ide\Matcher.hs (3544, 2016-03-05)
src\PureScript\Ide\Pursuit.hs (3534, 2016-03-05)
src\PureScript\Ide\Reexports.hs (2359, 2016-03-05)
src\PureScript\Ide\SourceFile.hs (4444, 2016-03-05)
src\PureScript\Ide\State.hs (2566, 2016-03-05)
src\PureScript\Ide\Types.hs (6233, 2016-03-05)
src\PureScript\Ide\Watcher.hs (1231, 2016-03-05)
stack.yaml (948, 2016-03-05)
test (0, 2016-03-05)
... ...

# DEPRECATION WARNING: psc-ide is now distributed with the compiler. This repo won't be kept in sync. psc-ide === A tool which provides editor support for the PureScript language. [![Build Status](https://travis-ci.org/kRITZCREEK/psc-ide.svg?branch=travis-build)](https://travis-ci.org/kRITZCREEK/psc-ide) ## Installation Compiled binaries are provided for Windows, Ubuntu and OSX on the [release page](https://github.com/kRITZCREEK/psc-ide/releases). It is however very easy to build psc-ide with stack or cabal. After you installed the psc-ide binaries you can start using one of the editor plugins. ### Using stack `stack install psc-ide` ### Using cabal For building with cabal the use of sandboxes is highly recommended to avoid "cabal hell" ``` mkdir psc-ide cd psc-ide cabal update cabal sandbox init cabal install psc-ide ``` And then copy the compiled binaries from `.cabal-sandbox/bin/` into a folder on your path. ### From Source For the most recent version of psc-ide you can compile from master doing: ``` git clone https://github.com/kRITZCREEK/psc-ide.git cd psc-ide stack install ``` ## Editor Integration * [@epost](https://github.com/epost) wrote a plugin to integrate psc-ide with Emacs at https://github.com/epost/psc-ide-emacs. * Atom integration is available with https://github.com/nwolverson/atom-ide-purescript. * Visual Studio Code integration is available with https://github.com/nwolverson/vscode-ide-purescript. * Vim integration is available here: https://github.com/FrigoEU/psc-ide-vim. ## Running the Server Start the server by running the `psc-ide-server` executable. It supports the following options: - `-p / --port` specify a port. Defaults to 4242 - `-d / --directory` specify the toplevel directory of your project. Defaults to the current directory - `--output-directory`: Specify where to look for compiled output inside your project directory. Defaults to `output/`, relative to either the current directory or the directory specified by `-d`. - `--debug`: Enables some logging meant for debugging - `--version`: Output psc-ide version ## Issuing queries After you started the server you can start issuing requests using psc-ide. Make sure you start by loading the modules before you try to query them. psc-ide expects the build externs.purs inside the `output/` folder of your project after running `pulp build` or `psc-make` respectively. (If you changed the port of the server you can change the port for psc-ide by using the -p option accordingly) ## Protocol For a documentation have a look at: [PROTOCOL.md](PROTOCOL.md) ## Installing and Building The project is set up to be built using the [stack](https://github.com/commercialhaskell/stack) tool. ```bash cd psc-ide stack setup # This is only required if you haven't installed GHC 7.10.2 before stack build # add --copy-bins to also copy the compiled binaries to ~/.local/bin/ stack exec -- psc-ide-server & stack exec -- psc-ide ``` ## Testing The testsuite can be run with `stack test`.

近期下载者

相关文件


收藏者