Skip to content

Instantly share code, notes, and snippets.

View joshuapassos's full-sized avatar
🐨
Focusing

Joshua Passos joshuapassos

🐨
Focusing
View GitHub Profile
{-# LANGUAGE DataKinds, KindSignatures, TypeOperators, GADTs, TypeFamilies, UndecidableInstances #-}
{- about invariants -}
data NatPos = One | Succ NatPos
data SingleNatPos :: NatPos -> * where
SingleOne :: SingleNatPos One
SingleSucc :: SingleNatPos natpos -> SingleNatPos (Succ natpos)
type family (m :: NatPos) |+| (n :: NatPos) :: NatPos where
@joshuapassos
joshuapassos / 0_reuse_code.js
Last active August 29, 2015 14:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console