Skip to content

Instantly share code, notes, and snippets.

@onlyshk
Created December 7, 2011 07:27
Show Gist options
  • Save onlyshk/1441857 to your computer and use it in GitHub Desktop.
Save onlyshk/1441857 to your computer and use it in GitHub Desktop.
Liftable
{-# 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