Created
December 7, 2011 07:27
-
-
Save onlyshk/1441857 to your computer and use it in GitHub Desktop.
Liftable
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
{-# OPTIONS -fglasgow-exts #-} | |
{-# LANGUAGE AllowUndecidableInstances #-} | |
import Control.Monad | |
instance (Functor m, Monad m) => Liftable m where | |
zipL = liftM2 (\x y -> (x,y)) | |
zeroL = return () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment