From c7eeb5349e8e690add8065b853c5a38052bbdd88 Mon Sep 17 00:00:00 2001 From: Stephen Diehl Date: Mon, 12 Dec 2016 16:10:49 +0000 Subject: [PATCH] fix exports for functor module --- src/Functor.hs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Functor.hs b/src/Functor.hs index 80683396e..7d0a31d9f 100644 --- a/src/Functor.hs +++ b/src/Functor.hs @@ -6,9 +6,12 @@ module Functor ( Functor(..), ($>), (<$>), + (<<$>>), void, ) where +import Data.Function ((.)) + #if (__GLASGOW_HASKELL__ >= 710) import Data.Functor ( Functor(..) @@ -23,16 +26,17 @@ import Data.Functor ( ) import Data.Function (flip) -import Data.Function ((.)) infixl 4 $> ($>) :: Functor f => f a -> b -> f b ($>) = flip (<$) -(<<$>>) :: (Functor f, Functor g) => (a -> b) -> f (g a) -> f (g b) -(<<$>>) = fmap . fmap - void :: Functor f => f a -> f () void x = () <$ x #endif + +infixl 4 <<$>> + +(<<$>>) :: (Functor f, Functor g) => (a -> b) -> f (g a) -> f (g b) +(<<$>>) = fmap . fmap