Skip to content

Instantly share code, notes, and snippets.

@ljli
ljli / Main.hs
Created November 22, 2017 23:46
GHC add foreign object
{-# LANGUAGE TemplateHaskell #-}
module Main where
import Data.Int
import System.Process
import Language.Haskell.TH.Syntax
foreign import ccall "add" add :: Int32 -> Int32 -> Int32
@ljli
ljli / haskell-tools.el
Created April 14, 2017 17:50
haskell-tools emacs integration
;;; haskell-tools.el --- haskell-tools emacs integration -*- lexical-binding: t -*-
(require 'json)
(setq ht-daemon-proc nil)
(setq ht-daemon-conn nil)
(setq ht-debug nil)
(setq ht-next-cmd-start (make-marker))
(setq ht-loaded-packages '())