haskelisp: Write Emacs module in Haskell, using Emacs 25's Dynamic Module feature

[ editor, emacs, gpl, library ] [ Propose Tags ]

Write Emacs module in Haskell, using Emacs 25's Dynamic Module feature.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.5, 0.1.1.0
Dependencies base (>=4.7 && <5), containers (<0.6), mtl (<2.3), protolude (<0.2), text (<1.3) [details]
License GPL-3.0-only
Copyright 2016 Takenari Shinohara
Author Takenari Shinohara
Maintainer takenari.shinohara@gmail.com
Category Editor, Emacs
Home page http://github.com/githubuser/haskelisp#readme
Source repo head: git clone https://github.com/githubuser/haskelisp
Uploaded by shintak at 2016-11-20T14:57:27Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 4678 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-11-20 [all 1 reports]

Readme for haskelisp-0.1.0.5

[back to package description]

EXPERIMENTAL

Write Emacs module in Haskell, using Emacs 25's Dynamic Module feature.

  • Only tested with linux.
  • You need to build emacs with --with-modules configuration options
  • You need to specify some ghc-options to make it work

Sample:

{-# LANGUAGE ForeignFunctionInterface,OverloadedStrings #-}
module Main where

import Emacs

foreign export ccall "emacs_module_init" emacsModuleInit :: EmacsModule

emacsModuleInit :: EmacsModule
emacsModuleInit = defmodule "sample-module" $ do

  setVal "foo" (Symbol "bar")

  defun "square" $ \i -> do
    message "haskell squre function called"
    return $ (i*i :: Int)