Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mainland on github.
  • I am mainland (https://keybase.io/mainland) on keybase.
  • I have a public key whose fingerprint is B2FB E253 ED90 66F1 A782 B465 344A 5E7B D3BD 8338

To claim this, I am signing this object:

/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2015 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright notice,
#lang racket
(define (main . argv)
(display argv)
(newline))
(provide main)
@mainland
mainland / AddTopDecls.hs
Created February 12, 2015 02:49
addTopDecls example for Template Haskell
{-# LANGUAGE TemplateHaskell #-}
module AddTopDecls where
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
importDoubleToDouble :: String -> ExpQ
importDoubleToDouble fname = do
n <- newName fname