登录 注册
开发者工具自动化与工作流数据分析与数据处理
1,203
Stars
117
Forks
18
Watchers
120
Open Issues
NOASSERTION
许可证
Haskell
语言
2014-09-26
创建时间
2026-10-31
最近更新

项目能做什么

ghcid 是一个极简的 Haskell 轻量级“类 IDE”终端工具。它旨在解决 Haskell 开发中快速查看报错的需求,核心功能是后台运行 GHCi,在源码保存修改时自动执行 `:reload`,并把错误和告警信息实时格式化显示在终端窗口中。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# ghcid [![Hackage version](https://img.shields.io/hackage/v/ghcid.svg?label=Hackage)](https://hackage.haskell.org/package/ghcid) [![Stackage version](https://www.stackage.org/package/ghcid/badge/nightly?label=Stackage)](https://www.stackage.org/package/ghcid) [![Build status](https://img.shields.io/github/actions/workflow/status/ndmitchell/ghcid/ci.yml?branch=master)](https://github.com/ndmitchell/ghcid/actions)

Either "GHCi as a daemon" or "GHC + a bit of an IDE". To a first approximation, it opens `ghci` and runs `:reload` whenever your source code changes, formatting the output to fit a fixed height console. Unlike other Haskell development tools, `ghcid` is intended to be _incredibly simple_. In particular, it doesn't integrate with any editors, doesn't provide access to the `ghci` it starts, doesn't depend on GHC the library and doesn't start web servers.

_Acknowledgements:_ This project incorporates significant work from [JPMoresmau](https://github.com/JPMoresmau), who is listed as a co-author.

### Using it

Run `stack install ghcid`, `brew install ghcid` or `cabal update && cabal install ghcid` to install it as normal. Then run `ghcid "--command=ghci Main.hs"`. The `command` is how you start your project in `ghci`. If you omit `--command` then it will default to `stack ghci` if you have the `stack.yaml` file and `.stack-work` directory, default to `ghci` if you have a `.ghci` file in the current directory, and otherwise default to `cabal repl`.

Personally, I always create a `.ghci` file at the root of all my projects, which usually [reads something like](https://github.com/ndmitchell/ghcid/blob/master/.ghci):

    :set -fwarn-unused-binds -fwarn-unused-imports
    :set -isrc
    :load Main

After that, resize your console and make it so you can see it while working in your editor. On Windows you may wish to pass `--topmost` so the console will sit on top of all other windows. On Linux, you probably want to use your window manager to make it topmost or use a [tiling window manager](http://xmonad.org/).

### What you get

On every save you'll see a list of the errors and warnings in your project. It uses `ghci` under the hood, so even relatively large projects should update their status pretty quickly. As an example:

    Main.hs:23:10:
        Not in scope: `verbosit'
        Perhaps you meant `verbosity' (imported from System.Console.CmdArgs)
    Util.hs:18:1: Warning: Defined but not used: `foo'

Or, if everything is good, you see:

    All good

Please [report any bugs](https://github.com/ndmitchell/ghcid/issues) you find.

### Editor integration

There are a few plugins that integrate Ghcid into editors, notably:

* [VS Code](https://marketplace.visualstudio.com/items?itemName=ndmitchell.haskell-ghcid)
* [nvim](plugins/nvim/)
* [vim](https://github.com/aiya000/vim-ghcid-quickfix)
* [Emacs](plugins/emacs/)

### Usage tips

* If you have a `.ghcid` file in the current folder, or a parent folder, the contents of that file will be used
阅读完整原文

项目深度分析 AI 生成

面向大中型项目的 Haskell 极速云端/远程开发环境服务 (SaaS)

产品构想针对企业在本地运行 Haskell 工具链性能慢、内存吃紧的痛点,提供基于云端的预构建、高性能远程容器,内置预配置好的 ghcid、cabal/stack 缓存加速与热重载管道,让开发者通过轻量客户端直接体验毫秒级编译反馈。
核心功能远程编译环境秒级开箱即用;分布式 GHC 缓存与增量热重载;集成 ghcid 守护进程的 Web/SSH/IDE 管道;团队统一环境配置下发。
目标用户采用 Haskell 作为核心业务语言的中小型研发团队(如加密货币、量化交易公司)。
难度/周期高 · 3 - 6 个月 · 成本:云服务器算力成本、跨平台通信网络成本、长期基础设施维护。
收费模式按团队席位订阅制(如 $20-$50/席位/月)或算力时长包收费。
竞争风险目标用户基数极其垂直(Niche Market);Haskell 开发者普遍偏好本地自定义环境,上云意愿需验证。
依据 已验证事实(ghcid 作为极简守护程序广受欢迎,但企业大项目面临 ghci 启动配置复杂门槛)与 AI 推测

高级 Haskell 团队 IDE 增强扩展包(商业插件)

产品构想在 ghcid 极简 CLI 与全量 HLS (Haskell Language Server) 之间寻找中间态,开发深度的 VS Code / Neovim 商业扩展,增强 ghcid 的多模块热重载、自动化单元测试运行可视化看板以及多 target 协同工作流。
核心功能针对复杂 Cabal/Stack 多包工程的自动 ghcid 多实例编排;富文本测试报告面板(基于 --test 与 --allow-eval 结果);一键快速修复(QuickFix)自动联动。
目标用户追求轻量极速体验、受困于全功能 LSP 资源开销大的职业 Haskell 工程师。
难度/周期中等 · 1 - 3 个月 · 成本:极低(主要为个人业余研发与插件维护时间)。
收费模式IDE 插件商店买断制(如 $19/人)或团队商业授权许可。
竞争风险开源文化浓厚的 Haskell 社区对付费编辑器插件接受度可能较低;维护多编辑器兼容成本高。
依据 AI推测

面向 Web3/金融工程的 Haskell 代码质量治理与咨询套件

产品构想结合 ghcid 的极速反馈引擎与静态检查规则,打包成针对智能合约(如 Cardano/Plutus)或金融交易逻辑的持续审查工具,提供企业级最佳实践审计服务与配套企业技术支持。
核心功能深度代码异味与未捕获异常实时诊断;合规性/安全策略本地极速扫描规则包;企业工作流优化咨询服务。
目标用户使用 Haskell 开发智能合约平台、高频量化组件的金融/Web3 企业。
难度/周期中等 · 2 - 4 个月 · 成本:低(主要为人天成本与定制开发)。
收费模式企业咨询按次/按项目收费,或定制安全规则库年订阅制。
竞争风险严重依赖个人行业人脉与企业客情拓展,标准化产品转化难度高。
依据 尚需验证的假设
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
haskell/ghcide 中文介绍暂未生成
A library for building Haskell IDE tooling
574 Haskell
cachix/ghcide-nix 中文介绍暂未生成
Nix installation for ghcide
74 Nix
aiya000/vim-ghcid-quickfix 中文介绍暂未生成
Increse your Haskell development via ghcid!
32 Vim script
cloudhead/neovim-ghcid 中文介绍暂未生成
Provides instant haskell error feedback inside of neovim, vi
22 VimL
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2014-09-26,近 30 天仍在推送,发布过 1 个 Release
社区活跃Star 1,203 / Fork 117 / Issue 120(数据支持,可自行核实)
许可证NOASSERTION
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。