Giter Site home page Giter Site logo

demo-emacs-haskell's Introduction

Using Emacs with Haskell Projects

About

A tutorial about using Emacs to develop Haskell projects. Only basic Haskell and Emacs knowledge is required.

The tutorial attempts to cover several of the Emacs packages that one often uses when writing Haskell:

  • company
  • flycheck
  • haskell-mode
  • haskell-snippets
  • helm
  • hlint-refactor
  • intero
  • projectile
  • use-package
  • which-key
  • yasnippet

If you are new to Emacs, go through its tutorial first (press control+h followed by t).

This was originally presented for the “PDX Emacs Hackers” group. Some of the people attending were not Haskellers, hence the sparse section on basic Haskell.

Setup

Haskell Tools

  1. Install Stack
  2. Install sandboxed GHC and dependencies
    stack setup
    stack build --dependencies-only --test
        
  3. Install tools
    stack build intero
    stack install apply-refact codex hasktags hlint
    codex set format emacs
        

    This might take a while.

Emacs

  1. Move any preexisting Emacs configurations
    for f in ~/.emacs*; do
      if [ -e "$f" ]; then
        echo "Moving config to $f.orig"
        mv "$f" "$f.orig"
      fi
    done
        
  2. Use this project’s configuration
    cp -r emacs.d ~/.emacs.d
        
  3. (Re)start Emacs

    It will take up to a couple of minutes for Emacs to download and compile all dependencies.

  4. Follow the tutorial

demo-emacs-haskell's People

Contributors

cydparser avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.