Skip to content

Instantly share code, notes, and snippets.

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/cqpcgx069vd1cxlr7i2pwp0cjk5jdpcs-configured-ghcjs-src
source root is configured-ghcjs-src
@nix { "action": "setPhase", "phase": "buildPhase" }
building
program ghcjs found at /nix/store/nrdn410dzhjf176nybdwls0i2qzb32h6-ghcjs/bin/ghcjs
program ghcjs-pkg found at /nix/store/nrdn410dzhjf176nybdwls0i2qzb32h6-ghcjs/bin/ghcjs-pkg
program ghcjs-run found at /nix/store/nrdn410dzhjf176nybdwls0i2qzb32h6-ghcjs/bin/ghcjs-run
program ghc found at /nix/store/q94pr71gsbj500jiw79431zyl8wcqphq-ghc-8.4.2/bin/ghc
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/j6k1cwwghxf7vw0x9j4k2kwx5jdhfymq-configured-ghcjs-src
source root is configured-ghcjs-src
@nix { "action": "setPhase", "phase": "buildPhase" }
building
program ghcjs found at /nix/store/3ny22ip8g5fd2ak82bp5a9505fnvs5vj-ghcjs/bin/ghcjs
program ghcjs-pkg found at /nix/store/3ny22ip8g5fd2ak82bp5a9505fnvs5vj-ghcjs/bin/ghcjs-pkg
program ghcjs-run found at /nix/store/3ny22ip8g5fd2ak82bp5a9505fnvs5vj-ghcjs/bin/ghcjs-run
program ghc found at /nix/store/m3sd5vgznyhpxcwbxs0zqygvh2wmigz4-ghc-8.4.2/bin/ghc
@nix { "action": "setPhase", "phase": "setupCompilerEnvironmentPhase" }
setupCompilerEnvironmentPhase
Build with /nix/store/m3sd5vgznyhpxcwbxs0zqygvh2wmigz4-ghc-8.4.2.
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/glag2905lx63lkqd9zpcghcjr3bdp1cf-configured-ghcjs-src/
source root is configured-ghcjs-src
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
Run jailbreak-cabal to lift version restrictions on build inputs.
unpacking sources
unpacking source archive /nix/store/q8m4cjigimnmivih34if773gd5m49ry3-configured-ghcjs-src
source root is configured-ghcjs-src
building
program ghcjs found at /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs
program ghcjs-pkg found at /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs-pkg
program ghcjs-run found at /nix/store/1cwdhg5c0nf7dzj5ip18z695rgiy57rq-ghcjs/bin/ghcjs-run
program ghc found at /nix/store/3cv3s9lv79qjkqyafbclbk03gz5z813w-ghc-8.2.2/bin/ghc
program ghc-pkg found at /nix/store/3cv3s9lv79qjkqyafbclbk03gz5z813w-ghc-8.2.2/bin/ghc-pkg
program cabal found at /nix/store/jzy31vh7qr8g2xkxy0fys0cqvb6g0xf6-cabal-install-2.2.0.0/bin/cabal
#define NUM 16
int foo[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int *bar = ((int *)&foo) + NUM;
#!/usr/bin/env bash
set -euo pipefail
args=()
while [ ! -z ${1+x} ]; do
case $1 in
-o|--out-link)
shift
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Attoparsec.Text
import qualified Data.Text.IO as T
import qualified Data.Vector.Unboxed as V
import qualified Data.Vector.Unboxed.Mutable as MV
import Formatting
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Attoparsec.ByteString.Char8
import qualified Data.ByteString as BS
import qualified Data.Vector.Unboxed as V
import qualified Data.Vector.Unboxed.Mutable as MV
import Formatting
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import qualified Data.Text as T
import qualified Data.Text.Read as T
import qualified Data.Text.IO as T
import qualified Data.Vector.Unboxed as V
import qualified Data.Vector.Unboxed.Mutable as MV
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as BS8
import qualified Data.Vector.Unboxed as V
import qualified Data.Vector.Unboxed.Mutable as MV