Skip to content

Instantly share code, notes, and snippets.

@codecurve
codecurve / LensIsomorphism.hs
Last active August 29, 2015 14:07 — forked from Javran/gist:9593215
Isomorphism using Lens
{-# LANGUAGE DeriveFunctor, RankNTypes #-}
import Data.Char
import Data.List
import Control.Lens
type Invertible a b = Simple Iso a b
{- translation table