This file contains hidden or 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 System.Environment | |
import System.Process | |
import Data.List (isInfixOf) | |
-- | This script wraps clang to pass it essential arguments that keep it from dying when | |
-- GHC uses it as a C pre-processor during the build process. | |
-- To use it, choose the version of clang you'd like to use, | |
-- (GHC-iOS needs to use Xcode5's clang, which is already set here) | |
-- then compile it (ghc clang-xcode5-wrapper.hs). | |
-- Then, find your GHC settings file (usually something like /usr/local/lib/ghc-7.6.3/settings) |
This file contains hidden or 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
all: test | |
ci: depclean test doc | |
PKG_DESCRIPTION = example.cabal | |
DEP = .cabal-sandbox | |
CONFIGURE = dist/setup-config | |
ifndef PREFIX | |
PREFIX = /usr/local |
This file contains hidden or 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
$ ghci -v dist/build/ghci-fail-one/ghci-fail-one-tmp/cbits/glue.o | |
GHCi, version 7.8.2: http://www.haskell.org/ghc/ :? for help | |
Glasgow Haskell Compiler, Version 7.8.2, stage 2 booted by GHC version 7.6.3 | |
Using binary package database: /opt/ghc-7.8.2/lib/ghc-7.8.2/package.conf.d/package.cache | |
wired-in package ghc-prim mapped to ghc-prim-0.3.1.0-948744e1f99cc8bcc7c7d3ba60c7c2d8 | |
wired-in package integer-gmp mapped to integer-gmp-0.5.1.0-dc47f6b546fc171f67a7f7d311684a99 | |
wired-in package base mapped to base-4.7.0.0-a333addb6892f3cc2e6baa5ec782bd04 | |
wired-in package rts mapped to builtin_rts | |
wired-in package template-haskell mapped to template-haskell-2.9.0.0-ed6ecfb467e6936688bb20f968f702e1 | |
wired-in package dph-seq not found. |
This file contains hidden or 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
$ cat >Foo.hs <<EOF | |
module Foo where | |
foo :: IO () | |
foo = print "Foo" | |
EOF | |
$ ghc -Wall -c -o Foo.o Foo.hs | |
$ cat >Foo.hs <<EOF |
This file contains hidden or 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
$ cat >Foo.hs <<EOF | |
module Foo where | |
foo :: IO () | |
foo = print "Foo" | |
EOF | |
$ ghc -Wall -c -o Foo.o Foo.hs | |
$ rm Foo.hs |
This file contains hidden or 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
#!/usr/bin/env python | |
def force(thunk): | |
return thunk() | |
class delay: | |
def __init__(self, func): | |
self.func = func | |
def remember(): | |
result = self.func() |
This file contains hidden or 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
> let author = | |
{ name: "P" | |
, interests: [] | |
} | |
(line 2, column 5): | |
unexpected "n" | |
expecting expression | |
> let author = | |
{ name: "P" |
This file contains hidden or 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
$ npm cache clean && npm install [email protected] | |
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/private/tmp/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules' | |
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/private/tmp/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules'] | |
npm ERR! error rolling back errno: 53, | |
npm ERR! error rolling back code: 'ENOTEMPTY', | |
npm ERR! error rolling back path: '/private/tmp/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules' } | |
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/private/tmp/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wra |
This file contains hidden or 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
$ npm cache clean && npm install [email protected] | |
npm ERR! Error: ENOENT, lstat '/private/tmp/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules/fs-extra/lib/move.js' | |
npm ERR! If you need help, you may report this *entire* log, | |
npm ERR! including the npm and node versions, at: | |
npm ERR! <http://github.com/npm/npm/issues> | |
npm ERR! System Darwin 13.3.0 | |
npm ERR! command "node" "/usr/local/bin/npm" "install" "[email protected]" | |
npm ERR! cwd /private/tmp | |
npm ERR! node -v v0.10.31 |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
0 info it worked if it ends with ok | |
1 verbose cli [ 'node', '/usr/local/bin/npm', 'install', '[email protected]' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose node symlink /usr/local/bin/node | |
5 verbose cache add [ '[email protected]', null ] | |
6 verbose cache add spec="[email protected]" args=["[email protected]",null] | |
7 verbose parsed spec { raw: '[email protected]', | |
7 verbose parsed spec scope: null, | |
7 verbose parsed spec name: 'imagemin', |