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
ndmitchell / hoogle.html
Created May 21, 2019
Hoogle with the XSS vulnerability
View hoogle.html
<!DOCTYPE HTML>
<html>
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<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="https://rawcdn.githack.com/ndmitchell/hoogle/a4120ecd73ba7e1c215e3261ed9796cf6c8a9708/html/hoogle.css" />
<link rel="stylesheet" type="text/css" href="https://rawcdn.githack.com/ndmitchell/hoogle/a4120ecd73ba7e1c215e3261ed9796cf6c8a9708/html/plugin/chosen.css" />
<link type="image/png" rel="icon" href="https://rawcdn.githack.com/ndmitchell/hoogle/a4120ecd73ba7e1c215e3261ed9796cf6c8a9708/html/favicon.png" />
View demo.prof
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)
COST CENTRE MODULE SRC %time %alloc
View index.html
<html>
<body>
This is a test
</body>
</html>
@ndmitchell
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">
<head>
<meta charset="utf-8" />
<title>Shake report</title>
<!-- Profiling output -->
<script>
View A.hs
import B
main = print foo
@ndmitchell
ndmitchell / convert.html
Created Feb 18, 2019
Makefile to Shake online converter outline
View convert.html
<!DOCTYPE html>
<html>
<head>
<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;}
</style>
View qualified.rst

Allow qualified to follow module name

.. proposal-number:: Leave blank. This will be filled in when the proposal is
                     accepted.
.. 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
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.