This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |