Skip to content

Instantly share code, notes, and snippets.

View roelvandijk's full-sized avatar

Roel van Dijk roelvandijk

View GitHub Profile
@roelvandijk
roelvandijk / Nub.hs
Last active February 7, 2016 16:51 — forked from fizruk/Nub.hs
Incredibly slow type-level Nub
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
module Nub where
import Data.Proxy
import Data.Type.Bool