Skip to content

Instantly share code, notes, and snippets.

View cryogenian's full-sized avatar

Maksim Zimaliev cryogenian

  • Yerevan, Armenia
View GitHub Profile
@holoed
holoed / JsonParser.hs
Last active March 31, 2017 16:01
Json Parser Example
{-#LANGUAGE DeriveFunctor#-}
module Main where
fix :: ((a -> b) -> a -> b) -> a -> b
fix f = f (fix f)
newtype Fix f = In { out :: f (Fix f) }
type Algebra f a = f a -> a