Skip to content

Instantly share code, notes, and snippets.

View ScriptDevil's full-sized avatar

Ashok Gautham ScriptDevil

View GitHub Profile
let namedf ~first:a ~second:b = (a,b);;
let f a b = (a,b);;
(*
val namedf : first:'a -> second:'b -> 'a * 'b = <fun>
val f : 'a -> 'b -> 'a * 'b = <fun>
*)
let partialnamedf = namedf ~first:33;;
let partialf = f 33;;
(*
@ScriptDevil
ScriptDevil / haskell-data-analysis-cookbook-package-setup.sh
Last active August 29, 2015 14:02
Haskell Data Analysis Cookbook - Package List
#!/bin/sh
# I intend this to be a readable/executable script for installing all
# the packages discussed in "Haskell Data Analysis Cookbook" by
# Nishant Shukla
# Use cabal > 1.18 since I use sandboxes for the code here
# I use sandboxes because I have found that package conflicts
# (mostly because of version number issues) are terribe to deal with
# in Haskell. Use a script like the one in
@ScriptDevil
ScriptDevil / collect-links.el
Last active December 11, 2015 10:38
A function to collect links in an email and group them together at the end