Skip to content

Instantly share code, notes, and snippets.

View DanBurton's full-sized avatar

Dan Burton DanBurton

View GitHub Profile
@DanBurton
DanBurton / setup-info-gen.hs
Last active August 21, 2018 00:14
Generate a stack.yaml that can install ghc-8.6.1-beta1 (aka ghc-8.6.0.20180810)
#!/usr/bin/env stack
{- stack
script
--resolver lts-11.16
--package bytestring
--package http-conduit
-}
-- usage: ./Main.hs
-- modify the baseUrl and ghcDateVersion to taste
@DanBurton
DanBurton / curator-removalizer.hs
Created March 17, 2018 17:51
Parses stackage-curator output (on stderr, saved in "scheck.txt") and transforms this into package removals for build-constraints.yaml (printed to "removalizer.txt")
#!/usr/bin/env stack
{- stack
script
--resolver lts-10.2
-}
module Main where
import qualified Data.Char as Char
import Data.Semigroup ((<>))
@DanBurton
DanBurton / stack-info-gen.hs
Created February 26, 2018 00:27
script to generate a stack.yaml with "setup-info" for ghc-8.2-rc1 (ghc-8.4.0.20180224)
#!/usr/bin/env stack
{- stack
script
--resolver lts-10.2
--package bytestring
--package http-conduit
-}
-- usage: ./Main.hs
-- modify the baseUrl and ghcDateVersion to taste
@DanBurton
DanBurton / stack.yaml
Created February 26, 2018 00:28
stack.yaml with "setup-info" for ghc-8.2-rc1 (ghc-8.4.0.20180224)
setup-info:
ghc:
windows64:
8.4.0.20180224:
url: https://downloads.haskell.org/~ghc/8.4.1-rc1/ghc-8.4.0.20180224-x86_64-unknown-mingw32.tar.xz
sha256: 7d125b3bbaa2ec4022215787a259a41bf944ec02736c9555f2a19432eef21cad
linux64:
8.4.0.20180224:
url: https://downloads.haskell.org/~ghc/8.4.1-rc1/ghc-8.4.0.20180224-x86_64-unknown-linux.tar.xz
sha256: 34240b8055e81f78a58becd1351ce03235e1bb3fd14c419a7e97631514a780ad
@DanBurton
DanBurton / Main.hs
Created February 7, 2018 22:21
Generating stack's setup-info for ghc-8.4-alpha3
#!/usr/bin/env stack
{- stack
script
--resolver lts-10.2
--package bytestring
--package http-conduit
-}
-- usage: ./Main.hs
-- modify the baseUrl and ghcDateVersion to taste
@DanBurton
DanBurton / stack.yaml
Created February 7, 2018 22:24
A simple stack.yaml for ghc-8.4.1-alpha3
setup-info:
ghc:
macosx:
8.4.0.20180204:
url: https://downloads.haskell.org/~ghc/8.4.1-alpha3/ghc-8.4.0.20180204-x86_64-apple-darwin.tar.xz
sha256: 80d08f67a3c420a3048c52e8ec541cbe3bdc6372fa2d564bdd91ae7b470da854
linux64:
8.4.0.20180204:
url: https://downloads.haskell.org/~ghc/8.4.1-alpha3/ghc-8.4.0.20180204-x86_64-unknown-linux.tar.xz
sha256: 4526441619f96fe7f7452613fbdae9221d76d479ac2bd90192a1f4b91c68068b
@DanBurton
DanBurton / stack.yaml
Created January 22, 2018 22:34
A simple stack.yaml for ghc-8.4.1-alpha2
setup-info:
ghc:
linux32-nopie:
8.4.0.20180118:
url: https://downloads.haskell.org/~ghc/8.4.1-alpha2/ghc-8.4.0.20180118-i386-deb8-linux.tar.xz
sha256: be1a3b5de9f671199533d22f2810d9b62c6392b32b39833cd384a094566703c6
windows32:
8.4.0.20180118:
url: https://downloads.haskell.org/~ghc/8.4.1-alpha2/ghc-8.4.0.20180118-i386-unknown-mingw32.tar.xz
sha256: 3f4b9291ad35d89ca7b3561312a4329545aedceb5c4c8c5c4cf01550037376a1
@DanBurton
DanBurton / Main.hs
Created January 22, 2018 23:02
Generating stack's setup-info
#!/usr/bin/env stack
{- stack
script
--resolver lts-10.2
--package bytestring
--package http-conduit
-}
-- usage: ./Main.hs
-- modify the baseUrl and ghcDateVersion to taste
@DanBurton
DanBurton / core_test.clj
Created April 13, 2017 20:20
Failing test for clj-http: can't send :form-params with method :delete
;; (defproject clj-http-bug "0.1.0-SNAPSHOT"
;; :description "FIXME: write description"
;; :url "http://example.com/FIXME"
;; :license {:name "Eclipse Public License"
;; :url "http://www.eclipse.org/legal/epl-v10.html"}
;; :dependencies [[org.clojure/clojure "1.8.0"]
;; [clj-http "2.3.0"]
;; [http-kit "2.2.0"]
;; [ring/ring-jetty-adapter "1.5.1"]])
@DanBurton
DanBurton / core_test.clj
Created April 13, 2017 19:49
Passing tests wrt form-params
;; (defproject clj-http-bug "0.1.0-SNAPSHOT"
;; :description "FIXME: write description"
;; :url "http://example.com/FIXME"
;; :license {:name "Eclipse Public License"
;; :url "http://www.eclipse.org/legal/epl-v10.html"}
;; :dependencies [[org.clojure/clojure "1.8.0"]
;; [clj-http "2.3.0"]
;; [http-kit "2.2.0"]
;; [ring/ring-jetty-adapter "1.5.1"]])