Permalink
Browse files

hyperlinking haddocks

  • Loading branch information...
ekmett committed Aug 16, 2012
1 parent b88a583 commit d0eecb6a5d2ad5eadba8c17147d0ba2e2146a649
Showing with 10 additions and 10 deletions.
  1. +10 −10 src/Control/Lens/Type.hs
View
@@ -499,15 +499,15 @@ l <&&~ c = l <%~ (&& c)
-- | Modify the target of a 'Lens' into your monad's state by a user supplied
-- function and return the result.
--
--- When you do not need the result of the operation, ('%=') is more flexible.
+-- When you do not need the result of the operation, ('Control.Lens.Setter.%=') is more flexible.
(<%=) :: MonadState a m => LensLike ((,)d) a a c d -> (c -> d) -> m d
l <%= f = l %%= (\c -> let d = f c in (d,d))
{-# INLINE (<%=) #-}
-- | Add to the target of a numerically valued 'Lens' into your monad's state
-- and return the result.
--
--- When you do not need the result of the multiplication, ('+=') is more
+-- When you do not need the result of the multiplication, ('Control.Lens.Setter.+=') is more
-- flexible.
(<+=) :: (MonadState a m, Num b) => SimpleLensLike ((,)b) a b -> b -> m b
l <+= b = l <%= (+ b)
@@ -516,7 +516,7 @@ l <+= b = l <%= (+ b)
-- | Subtract from the target of a numerically valued 'Lens' into your monad's
-- state and return the result.
--
--- When you do not need the result of the multiplication, ('-=') is more
+-- When you do not need the result of the multiplication, ('Control.Lens.Setter.-=') is more
-- flexible.
(<-=) :: (MonadState a m, Num b) => SimpleLensLike ((,)b) a b -> b -> m b
l <-= b = l <%= subtract b
@@ -525,7 +525,7 @@ l <-= b = l <%= subtract b
-- | Multiply the target of a numerically valued 'Lens' into your monad's
-- state and return the result.
--
--- When you do not need the result of the multiplication, ('*=') is more
+-- When you do not need the result of the multiplication, ('Control.Lens.Setter.*=') is more
-- flexible.
(<*=) :: (MonadState a m, Num b) => SimpleLensLike ((,)b) a b -> b -> m b
l <*= b = l <%= (* b)
@@ -534,47 +534,47 @@ l <*= b = l <%= (* b)
-- | Divide the target of a fractionally valued 'Lens' into your monad's state
-- and return the result.
--
--- When you do not need the result of the division, ('//=') is more flexible.
+-- When you do not need the result of the division, ('Control.Lens.Setter.//=') is more flexible.
(<//=) :: (MonadState a m, Fractional b) => SimpleLensLike ((,)b) a b -> b -> m b
l <//= b = l <%= (/ b)
{-# INLINE (<//=) #-}
-- | Raise the target of a numerically valued 'Lens' into your monad's state
-- to a non-negative 'Integral' power and return the result.
--
--- When you do not need the result of the operation, ('**=') is more flexible.
+-- When you do not need the result of the operation, ('Control.Lens.Setter.**=') is more flexible.
(<^=) :: (MonadState a m, Num b, Integral c) => SimpleLensLike ((,)b) a b -> c -> m b
l <^= c = l <%= (^ c)
{-# INLINE (<^=) #-}
-- | Raise the target of a fractionally valued 'Lens' into your monad's state
-- to an 'Integral' power and return the result.
--
--- When you do not need the result of the operation, ('^^=') is more flexible.
+-- When you do not need the result of the operation, ('Control.Lens.Setter.^^=') is more flexible.
(<^^=) :: (MonadState a m, Fractional b, Integral c) => SimpleLensLike ((,)b) a b -> c -> m b
l <^^= c = l <%= (^^ c)
{-# INLINE (<^^=) #-}
-- | Raise the target of a floating-point valued 'Lens' into your monad's
-- state to an arbitrary power and return the result.
--
--- When you do not need the result of the operation, ('**=') is more flexible.
+-- When you do not need the result of the operation, ('Control.Lens.Setter.**=') is more flexible.
(<**=) :: (MonadState a m, Floating b) => SimpleLensLike ((,)b) a b -> b -> m b
l <**= b = l <%= (** b)
{-# INLINE (<**=) #-}
-- | Logically '||' a Boolean valued 'Lens' into your monad's state and return
-- the result.
--
--- When you do not need the result of the operation, ('||=') is more flexible.
+-- When you do not need the result of the operation, ('Control.Lens.Setter.||=') is more flexible.
(<||=) :: MonadState a m => SimpleLensLike ((,)Bool) a Bool -> Bool -> m Bool
l <||= b = l <%= (|| b)
{-# INLINE (<||=) #-}
-- | Logically '&&' a Boolean valued 'Lens' into your monad's state and return
-- the result.
--
--- When you do not need the result of the operation, ('&&=') is more flexible.
+-- When you do not need the result of the operation, ('Control.Lens.Setter.&&=') is more flexible.
(<&&=) :: MonadState a m => SimpleLensLike ((,)Bool) a Bool -> Bool -> m Bool
l <&&= b = l <%= (&& b)
{-# INLINE (<&&=) #-}

0 comments on commit d0eecb6

Please sign in to comment.