Created
February 10, 2016 15:15
-
-
Save pkamenarsky/b53abbabd44e2123def6 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
import Data.Lens | |
import Data.Lens.Index | |
viewIndex :: forall m a b. (Index m a b) => m -> a -> b | |
viewIndex m a = view (ix a) m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment