This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | The first list is incorrectly numbered as 1. 2. 1.; the second example | |
-- renders fine (1. 2. 3.). | |
-- | |
-- See https://github.com/haskell/haddock/issues/313 | |
module HaddockListBug | |
where | |
{- | | |
Some text. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; See http://www.haskell.org/haddock/doc/html/ch03s08.html#idp1371070500 | |
; and http://www.haskell.org/haddock/doc/html/ch03s08.html#idp1371060908 | |
; | |
; Examples: | |
; \, /, ', `, ", @, < ===> \\, \/, \', \`, \", \@, \< | |
; foo `fmap` bar "/a/b" ===> foo \`fmap\` bar \"\/a\/b\" | |
(defun haddock-escape (start end) | |
"Escape symbols that have special meaning in Haddock comments." | |
(interactive "r") | |
(replace-regexp "\\([^\\\\]?\\)\\(`\\|'\\|\\\"\\|@\\|<\\|/\\|\\\\\\)" "\\1\\\\\\2" nil start end)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main | |
where | |
main = undefined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/gman/bin/ghc-7.6.3/bin/hsc2hs --cc=/usr/bin/gcc | |
--ld=/usr/bin/gcc --cflag=-Wl,--hash-size=31 | |
--cflag=-Wl,--reduce-memory-overheads --lflag=-Wl,--hash-size=31 | |
--lflag=-Wl,--reduce-memory-overheads | |
--cflag=-D__GLASGOW_HASKELL__=706 --cflag=-Dlinux_BUILD_OS=1 | |
--cflag=-Di386_BUILD_ARCH=1 --cflag=-Dlinux_HOST_OS=1 | |
--cflag=-Di386_HOST_ARCH=1 --cflag=-IDatabase/HSQL | |
--cflag=-I/usr/include/mysql | |
--cflag=-Idist/dist-sandbox-53474081/build/autogen | |
--cflag=-include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Monad | |
import Data.Word | |
import LLVM.Core | |
import LLVM.Util.File | |
-- prints out "hello world" | |
bldGreet :: String -> CodeGenModule (Function (IO ())) | |
bldGreet userName = do | |
puts <- newNamedFunction ExternalLinkage "puts" :: TFunction (Ptr Word8 -> IO Word32) | |
func <- withStringNul ("Hello, " ++ userName ++ "!") $ \greetz -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* DO NOT EDIT: This file is automatically generated by Cabal */ | |
/* package array-0.4.0.1 */ | |
#define VERSION_array "0.4.0.1" | |
#define MIN_VERSION_array(major1,major2,minor) (\ | |
(major1) < 0 || \ | |
(major1) == 0 && (major2) < 4 || \ | |
(major1) == 0 && (major2) == 4 && (minor) <= 0) | |
/* package base-4.6.0.1 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.data | |
.align 4 | |
.align 1 | |
.globl __stginit_main:Test | |
.type __stginit_main:Test, @object | |
__stginit_main:Test: | |
.data | |
.align 4 | |
.align 1 | |
.globl Test.test_closure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
sudo aptitude update | |
sudo aptitude full-upgrade | |
sudo aptitude install build-essential git libgmp3-dev libgmp3c2 libgmp-dev pigz lbzip2 autoconf libtool zlib1g-dev libncurses-dev zile | |
wget http://www.haskell.org/ghc/dist/7.6.3/ghc-7.6.3-x86_64-unknown-linux.tar.bz2 | |
tar xjvf ghc-7.6.3-x86_64-unknown-linux.tar.bz2 | |
cd ghc-7.6.3 | |
mkdir ~/bin/ghc-7.6.3 | |
./configure --prefix /home/ubuntu/bin/ghc-7.6.3 && make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- See http://stackoverflow.com/questions/18601033/haskell-avoiding-stack-overflow-in-folds-without-sacrificing-performance/18602250. | |
{-# LANGUAGE OverloadedStrings, BangPatterns #-} | |
module Main where | |
import qualified Data.ByteString.Lazy.Char8 as L | |
import Data.Int (Int64) | |
genTweets :: L.ByteString -> L.ByteString |