Skip to content

Instantly share code, notes, and snippets.

View qnikst's full-sized avatar
🐧
penguin?

Alexander Vershilov qnikst

🐧
penguin?
View GitHub Profile
@qnikst
qnikst / lol.hs
Last active February 24, 2017 07:13 — forked from s9gf4ult/lol.hs
TF (juick : http://juick.com/segfault/2863032#5)
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
import Data.Time
type family TimeDiff a where
TimeDiff UTCTime = NominalDiffTime
TimeDiff a = a