Created
December 18, 2014 12:14
-
-
Save mbrcknl/1855ba8e07b53b93f70c to your computer and use it in GitHub Desktop.
This file contains 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 RankNTypes #-} | |
import Control.Lens.Lens (Lens,lens) | |
type Quotient s t a = forall b. Lens s t a b | |
quotient :: (s -> a) -> (s -> t) -> Quotient s t a | |
quotient sa st = lens sa (const . st) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment