Skip to content

Instantly share code, notes, and snippets.

Neil Mitchell ndmitchell

Block or report user

Report or block ndmitchell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Stack.hs
{-# LANGUAGE TemplateHaskell #-}
-- | Try performing a Stack-like install.
module Test.Example.Stack(main) where
import Development.Rattle
import Development.Shake.FilePath
import System.IO.Extra
import Language.Haskell.TH
import qualified Data.ByteString as BS
ndmitchell / hoogle.html
Created May 21, 2019
Hoogle with the XSS vulnerability
View hoogle.html
<head profile="">
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title>'"><marquee style - Hoogle</title>
<meta name="robots" content="index" />
<link type="text/css" rel="stylesheet" href="" />
<link rel="stylesheet" type="text/css" href="" />
<link type="image/png" rel="icon" href="" />
This file has been truncated, but you can view the full file.
Fri May 17 17:24 2019 Time and Allocation Profiling Report (Final)
demo +RTS -p -RTS
total time = 0.82 secs (824 ticks @ 1000 us, 1 processor)
total alloc = 736,329,896 bytes (excludes profiling overheads)
View index.html
This is a test
ndmitchell / report.html
Created Mar 18, 2019
Hadrian Shake profile
View report.html
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<title>Shake report</title>
<!-- Profiling output -->
View A.hs
import B
main = print foo
ndmitchell / convert.html
Created Feb 18, 2019
Makefile to Shake online converter outline
View convert.html
<!DOCTYPE html>
<title>Shake Convertor</title>
<style type="text/css">
html, body, #root, tr {width: 100%; height: 100%;}
td {height: 100%}
#input, #output {height: 100%; width: 100%;}
#output {border: 2px solid gray;}
View qualified.rst

Allow qualified to follow module name

.. proposal-number:: Leave blank. This will be filled in when the proposal is
.. trac-ticket:: Leave blank. This will eventually be filled with the Trac
                 ticket number which will track the progress of the
                 implementation of the feature.
.. implemented:: Leave blank. This will be filled in with the first GHC version which
                 implements the described feature.
View CountingColons.hs
{-# LANGUAGE BangPatterns, RecordWildCards #-}
import Data.List.Extra
import System.Process.Extra
import System.Directory
import System.FilePath
import System.Environment
import Data.Char
import System.IO
import Debug.Trace
ndmitchell / Types.hs
Created Aug 15, 2018
Compile with no ghc libraries installed
View Types.hs
-- Compile with:
-- ghc -hide-all-packages -fforce-recomp GHC/Types.hs -this-unit-id=ghc-prim
{-# LANGUAGE NoImplicitPrelude, MagicHash #-}
module GHC.Types where
import GHC.Prim
default ()
You can’t perform that action at this time.