Skip to content

Instantly share code, notes, and snippets.

View DanBurton's full-sized avatar

Dan Burton DanBurton

View GitHub Profile
@DanBurton
DanBurton / stackage-disabled-2016-12-29.yaml
Created December 30, 2016 01:39
A sorted list of all packages currently commented out in stackage's build-constraints.yaml (as of 2016-12-29)
- Cartesian # bounds: lens
- HaRe # via: cabal-helper, ghc-mod, rosezipper
- MASMGen # bounds: ghc, base
- Michelangelo # bounds: lens # via: Wavefront
- Spock-digestive # via: digestive-functors
- TaxonomyTools # build failure
- aeson-schema # bounds: QuickCheck, aeson # compilation failure for 0.4.1.1
- agda-snippets # bounds: ghc, base
- agda-snippets-hakyll # bounds: ghc, base
- agentx # bounds: ghc, base

Keybase proof

I hereby claim:

  • I am danburton on github.
  • I am danburton (https://keybase.io/danburton) on keybase.
  • I have a public key ASB6oUatP8vG6qqfHwAyVlCixPOub2U3XEXzoUpi9Yvewwo

To claim this, I am signing this object:

@DanBurton
DanBurton / gist:1302347
Created October 20, 2011 20:52
Tree fold in Racket
(define-type (Tree a) (U (leaf a) (node a)))
(struct: (a) leaf ([val : a]))
(struct: (a) node ([left : (Tree a)] [right : (Tree a)]))
(: tree-height (All (a) ((Tree a) -> Integer)))
(define (tree-height t)
(cond [(leaf? t) 1]
[else (max (+ 1 (tree-height (node-left t)))
(+ 1 (tree-height (node-right t))))]))