packages feed

haskelisp 0.1.0.2 → 0.1.0.3

raw patch · 2 files changed

+28/−23 lines, 2 files

Files

+ README.md view
@@ -0,0 +1,25 @@+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 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)
haskelisp.cabal view
@@ -1,5 +1,5 @@ name: haskelisp-version: 0.1.0.2+version: 0.1.0.3 cabal-version: >=1.10 build-type: Simple license: GPL-3@@ -9,31 +9,11 @@ homepage: http://github.com/githubuser/haskelisp#readme synopsis: Write Emacs module in Haskell, using Emacs 25's Dynamic Module feature 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-    .-    >-    -# 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) category: Editor, Emacs author: Takenari Shinohara+extra-source-files:+    README.md  source-repository head     type: git