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 Distribution.Simple | |
main = defaultMain |
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
{stdenv, bash, jre, spark} : | |
stdenv.mkDerivation rec { | |
name = "mesos-spark-${version}"; | |
version = "1"; | |
unpackPhase = "true"; | |
installPhase = '' | |
set -x |
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.Exception | |
import Control.Monad | |
import Control.DeepSeq | |
main = forM_ (permute "laeioslaeioslaeios") putStrLn | |
leet :: Char -> String | |
leet 'e' = "e3" | |
leet 'a' = "a4" | |
leet 'A' = "A4" |
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
$ cabal clean | |
$ cabal repl -v2 | |
Package has never been configured. Configuring with default flags. If this | |
fails, please run configure manually. | |
/nix/store/dbrx6x3238hr8j07ys5n5jcy8012q9n3-ghc-7.8.3-wrapper/bin/ghc --numeric-version | |
looking for tool ghc-pkg near compiler in | |
/nix/store/dbrx6x3238hr8j07ys5n5jcy8012q9n3-ghc-7.8.3-wrapper/bin | |
found ghc-pkg in | |
/nix/store/dbrx6x3238hr8j07ys5n5jcy8012q9n3-ghc-7.8.3-wrapper/bin/ghc-pkg | |
/nix/store/dbrx6x3238hr8j07ys5n5jcy8012q9n3-ghc-7.8.3-wrapper/bin/ghc-pkg --version |
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 Foo where | |
foo :: IO () | |
foo = putStrLn "bar" |
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
with (import <nixpkgs> {}); | |
derivation { | |
name = "b"; | |
builder = "${bash}/bin/bash"; | |
args = ["-c" "echo 3 > /nix/store/foo; read foo < /nix/store/foo; echo $foo > $out"]; | |
system = "${builtins.currentSystem}"; | |
} |
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
{-# LANGUAGE OverloadedStrings #-} | |
module Downloader where | |
import Control.Monad.IO.Class (liftIO) | |
import Control.Monad.Trans.Resource | |
import qualified Data.ByteString as BS | |
import qualified Data.ByteString.Char8 as C8 | |
import Data.Conduit | |
import qualified Data.Conduit.Binary as CB |
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
# This file was auto-generated by cabal2nix. Please do NOT edit manually! | |
{ cabal, convertible, exceptions, HDBC, HDBCSqlite3, monadHdbc, mtl | |
, options, text, time, transformers | |
}: | |
cabal.mkDerivation (self: { | |
pname = "scrumgr"; | |
version = "0.1.0.0"; | |
src = ./.; |
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
$ gcc -c -o cbit.o cbit.c | |
$ ghc -threaded --make ffi.hs cbit.o -rtsopts |
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
let | |
nixpkgs = import <nixpkgs> {}; | |
haskellNg = nixpkgs.pkgs.haskell-ng; | |
# hopefully temporary, but ghc 7.8 fails because of non-deterministic builds (of GHC) | |
ghc710 = haskellNg.packages.ghc7101; | |
fixedHakyll = ghc710.hakyll.override { inherit (ghc710) mkDerivation; }; | |
pkg = ghc710.callPackage ./. { | |
hakyll = fixedHakyll; | |
}; | |
in nixpkgs.lib.overrideDerivation pkg.env (old:{ |
OlderNewer