Home

Awesome

<!-- markdownlint-disable --> <br /> <div align="center"> <a href="https://github.com/mrcjkb/haskell-snippets.nvim"> <img src="./logo.svg" alt="haskell-snippets.nvim"> </a> <p align="center"> <a href="https://github.com/mrcjkb/haskell-snippets.nvim/issues">Report Bug</a> </p> <p> <strong> My collection of Haskell snippets for <a href="https://github.com/L3MON4D3/LuaSnip">LuaSnip</a>. <br /> Powered by <a href="https://github.com/nvim-treesitter/nvim-treesitter">tree-sitter</a> and LSP. </strong> </p> <h2>🦥</h> </div> <!-- markdownlint-restore -->

Neovim Lua Haskell Nix

GPL2 License Issues Build Status LuaRocks

Quick Links

Installation

Use luarocks or your favourite plugin manager.

Required

Optional

Quick setup

Add the following to your LuaSnip setup.

local ls = require('luasnip')
ls.setup {
  -- Add your LuaSnip config
}
local haskell_snippets = require('haskell-snippets').all
ls.add_snippets('haskell', haskell_snippets, { key = 'haskell' })

[!NOTE]

See also :h haskell-snippets

Snippets

[!NOTE]

Pragmas

haskell-snippets.pragmas.prag

tty

haskell-snippets.pragmas.lang

tty

haskell-snippets.pragmas.discover

tty

haskell-snippets.pragmas.nowarn

tty

Module and imports

haskell-snippets.module.mod

tty

haskell-snippets.module.qual

tty

haskell-snippets.module.impc

tty

haskell-snippets.module.qualc

tty

Data and typeclasses

haskell-snippets.data.adt

tty

haskell-snippets.data.newtype

tty

haskell-snippets.data.rec

tty

haskell-snippets.data.cls

tty

haskell-snippets.data.ins

tty

haskell-snippets.data.constraint

tty

Functions

haskell-snippets.functions.fn

tty

haskell-snippets.functions.func

tty

haskell-snippets.functions.lambda

tty

Expressions

haskell-snippets.expressions.if_expr

tty

haskell-snippets.expressions.if_expr_multiline

tty

tty

haskell-snippets.expressions.if_expr_multiway

tty

haskell-snippets.expressions.lambdacase

tty

QuasiQuotes

haskell-snippets.quasiquotes.qq

tty

haskell-snippets.quasiquotes.sql

tty

Contributing

All contributions are welcome! See CONTRIBUTING.md.

Recommendations

Here are some other plugins I recommend for Haskell development:

<!-- MARKDOWN LNIKS & IMAGES -->