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
{-# LANGUAGE QuasiQuotes #-} | |
module MyFailure where | |
import Data.Text (Text, unpack) | |
import URI.ByteString | |
import URI.ByteString.QQ | |
-- | Query Parameter Representation | |
data OAuth2 = OAuth2 |
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
#!/bin/bash | |
rm test.o | |
ghc -rtsopts -threaded test.hs | |
# run like the following | |
# GHC_DEBUG_SOCKET=/tmp/ghc-debug ./test +RTS -M1G |
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
module A where | |
dep :: IO () | |
dep = putStrLn "dep." |
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
module A where | |
irrelevant :: IO () | |
irrelevant = putStrLn "irrelevant" |
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
nix-shell ~/repo/src/HROOT/use.nix --arg "fficxxSrc" ~/repo/src/fficxx --run "ghc graphApp.hs" | |
./graphApp |
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 | |
machine = | |
{ config, resources, pkgs, ... }: | |
let | |
kpkgs = | |
with pkgs; | |
let linux_4_19_80 = callPackage ../../nix/linux-4.19.80.nix { | |
kernelPatches = |
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 Control.Concurrent | |
import Data.Monoid ((<>)) | |
import XMonad hiding ( (|||) ) | |
import XMonad.Actions.CopyWindow | |
import XMonad.Actions.Navigation2D | |
import XMonad.Actions.UpdatePointer | |
import XMonad.Actions.WindowBringer | |
import XMonad.Config.Gnome | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Hooks.DynamicLog |
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
module Foo where | |
import Foreign.C.Types (CInt(..)) | |
import Foreign.Ptr (Ptr,FunPtr) | |
func :: CInt -> CInt -> CInt | |
func j i = j + i+1 | |
foreign import ccall "wrapper" mkFPtr :: (CInt -> CInt) -> IO (FunPtr (CInt -> CInt)) |
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
{-# LANGUAGE ScopedTypeVariables #-} | |
module Foo where | |
import Foreign.Ptr (Ptr) | |
import Foreign.StablePtr (castStablePtrToPtr | |
,castPtrToStablePtr | |
,deRefStablePtr | |
,newStablePtr | |
) |
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
{ stdenv, lib, fetchurl, jdk, zip, unzip, bash, writeScriptBin, coreutils, makeWrapper, which, python | |
# Always assume all markers valid (don't redownload dependencies). | |
# Also, don't clean up environment variables. | |
, enableNixHacks ? false | |
}: | |
stdenv.mkDerivation rec { | |
version = "0.15.2"; |
NewerOlder