haskell/haskell-snippets

Name: haskell-snippets

Owner: Haskell

Description: Official collection of YASnippet Haskell snippets for Emacs.

Forked from: lukehoersten/haskell-snippets

Created: 2015-05-01 17:07:38.0

Updated: 2018-01-09 01:58:08.0

Pushed: 2016-09-19 00:22:46.0

Homepage:

Size: 27

Language: Emacs Lisp

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Haskell-Snippets

Haskell-Snippets is a collection of YASnippet Haskell snippets for Emacs.

Installation

Enable the Emacs package manager and make sure the melpa package repository is set up.

uire 'package)
-to-list 'package-archives
         '("melpa" . "http://melpa.milkbox.net/packages/") t)
kage-initialize)

M-x package-install haskell-snippets

Add the following to your Emacs config:

uire 'haskell-snippets)

Snippets may have to be recompiled and reloaded in Emacs if YASnippet is already in use:

M-x yas-recompile-all M-x yas-reload-all

Haskell snippts should now be available to use! In a haskell-mode buffer, type fn<TAB>. A prompt should appear asking which fn snippet to expand.

I highly recommend using YASnippet with ido-mode. Configure Emacs:

q-default yas-prompt-functions '(yas-ido-prompt yas-dropdown-prompt))

This is important so that alternatives (like import vs. import qualified) can quickly be selected with a single key stroke.

Available Expansion Keys
Design Ideals
Authors

This code is written and maintained by Luke Hoersten, luke@hoersten.org.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.