Skip to content

Commit

Permalink
Merge pull request #21 from supki/fix-haddock
Browse files Browse the repository at this point in the history
Add escaping in confusing haddocks.
  • Loading branch information
ekmett committed Aug 20, 2012
2 parents 5ef9ecc + 2b44ccf commit 4aa7347
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
8 changes: 4 additions & 4 deletions src/Control/Lens/Setter.hs
Expand Up @@ -328,10 +328,10 @@ l -~ n = over l (subtract n)
-- | Divide the target(s) of a numerically valued 'Control.Lens.Type.Lens', 'Control.Lens.Iso.Iso', 'Setter' or 'Control.Lens.Traversal.Traversal'
--
-- @
-- (//~) :: 'Fractional' c => 'Setter' a b c c -> c -> a -> b
-- (//~) :: 'Fractional' c => 'Control.Lens.Iso.Iso' a b c c -> c -> a -> b
-- (//~) :: 'Fractional' c => 'Control.Lens.Type.Lens' a b c c -> c -> a -> b
-- (//~) :: 'Fractional' c => 'Control.Lens.Traversal.Traversal' a b c c -> c -> a -> b
-- (\/\/~) :: 'Fractional' c => 'Setter' a b c c -> c -> a -> b
-- (\/\/~) :: 'Fractional' c => 'Control.Lens.Iso.Iso' a b c c -> c -> a -> b
-- (\/\/~) :: 'Fractional' c => 'Control.Lens.Type.Lens' a b c c -> c -> a -> b
-- (\/\/~) :: 'Fractional' c => 'Control.Lens.Traversal.Traversal' a b c c -> c -> a -> b
-- @
(//~) :: Fractional c => Setting a b c c -> c -> a -> b
l //~ n = over l (/ n)
Expand Down
16 changes: 8 additions & 8 deletions src/Data/Monoid/Lens.hs
Expand Up @@ -28,10 +28,10 @@ infix 4 <>=, <<>=
-- ("hello!!!","world!!!")
--
-- @
-- (<>~) :: 'Monoid' c => 'Setter' a b c c -> c -> a -> b
-- (<>~) :: 'Monoid' c => 'Iso' a b c c -> c -> a -> b
-- (<>~) :: 'Monoid' c => 'Lens' a b c c -> c -> a -> b
-- (<>~) :: 'Monoid' c => 'Traversal' a b c c -> c -> a -> b
-- (\<\>~) :: 'Monoid' c => 'Setter' a b c c -> c -> a -> b
-- (\<\>~) :: 'Monoid' c => 'Iso' a b c c -> c -> a -> b
-- (\<\>~) :: 'Monoid' c => 'Lens' a b c c -> c -> a -> b
-- (\<\>~) :: 'Monoid' c => 'Traversal' a b c c -> c -> a -> b
-- @
(<>~) :: Monoid c => Setting a b c c -> c -> a -> b
l <>~ n = over l (`mappend` n)
Expand All @@ -40,10 +40,10 @@ l <>~ n = over l (`mappend` n)
-- | Modify the target(s) of a 'Simple' 'Lens', 'Iso', 'Setter' or 'Traversal' by 'mappend'ing a value.
--
-- @
-- (<>=) :: ('MonadState' a m, 'Monoid' b) => 'Simple' 'Setter' a b -> b -> m ()
-- (<>=) :: ('MonadState' a m, 'Monoid' b) => 'Simple' 'Iso' a b -> b -> m ()
-- (<>=) :: ('MonadState' a m, 'Monoid' b) => 'Simple' 'Lens' a b -> b -> m ()
-- (<>=) :: ('MonadState' a m, 'Monoid' b) => 'Simple' 'Traversal' a b -> b -> m ()
-- (\<\>=) :: ('MonadState' a m, 'Monoid' b) => 'Simple' 'Setter' a b -> b -> m ()
-- (\<\>=) :: ('MonadState' a m, 'Monoid' b) => 'Simple' 'Iso' a b -> b -> m ()
-- (\<\>=) :: ('MonadState' a m, 'Monoid' b) => 'Simple' 'Lens' a b -> b -> m ()
-- (\<\>=) :: ('MonadState' a m, 'Monoid' b) => 'Simple' 'Traversal' a b -> b -> m ()
-- @
(<>=) :: (MonadState a m, Monoid b) => SimpleSetting a b -> b -> m ()
l <>= b = State.modify (l <>~ b)
Expand Down
32 changes: 16 additions & 16 deletions src/System/FilePath/Lens.hs
Expand Up @@ -35,10 +35,10 @@ infix 4 </>=, <</>=, <.>=, <<.>=
-- ("hello/!!!","world/!!!")
--
-- @
-- (</>~) :: 'Setter' a b 'FilePath' 'FilePath' -> 'FilePath' -> a -> b
-- (</>~) :: 'Iso' a b 'FilePath' 'FilePath' -> 'FilePath' -> a -> b
-- (</>~) :: 'Lens' a b 'FilePath' 'FilePath' -> 'FilePath' -> a -> b
-- (</>~) :: 'Traversal' a b 'FilePath' 'FilePath' -> 'FilePath' -> a -> b
-- (\</\>~) :: 'Setter' a b 'FilePath' 'FilePath' -> 'FilePath' -> a -> b
-- (\</\>~) :: 'Iso' a b 'FilePath' 'FilePath' -> 'FilePath' -> a -> b
-- (\</\>~) :: 'Lens' a b 'FilePath' 'FilePath' -> 'FilePath' -> a -> b
-- (\</\>~) :: 'Traversal' a b 'FilePath' 'FilePath' -> 'FilePath' -> a -> b
-- @
(</>~) :: Setting a b FilePath FilePath -> FilePath -> a -> b
l </>~ n = over l (</> n)
Expand All @@ -48,10 +48,10 @@ l </>~ n = over l (</> n)
-- | Modify the target(s) of a 'Simple' 'Lens', 'Iso', 'Setter' or 'Traversal' by adding a path.
--
-- @
-- (</>=) :: 'MonadState' a m => 'Simple' 'Setter' a 'FilePath' -> 'FilePath' -> m ()
-- (</>=) :: 'MonadState' a m => 'Simple' 'Iso' a 'FilePath' -> 'FilePath' -> m ()
-- (</>=) :: 'MonadState' a m => 'Simple' 'Lens' a 'FilePath' -> 'FilePath' -> m ()
-- (</>=) :: 'MonadState' a m => 'Simple' 'Traversal' a 'FilePath' -> 'FilePath' -> m ()
-- (\</\>=) :: 'MonadState' a m => 'Simple' 'Setter' a 'FilePath' -> 'FilePath' -> m ()
-- (\</\>=) :: 'MonadState' a m => 'Simple' 'Iso' a 'FilePath' -> 'FilePath' -> m ()
-- (\</\>=) :: 'MonadState' a m => 'Simple' 'Lens' a 'FilePath' -> 'FilePath' -> m ()
-- (\</\>=) :: 'MonadState' a m => 'Simple' 'Traversal' a 'FilePath' -> 'FilePath' -> m ()
-- @
(</>=) :: MonadState a m => SimpleSetting a FilePath -> FilePath -> m ()
l </>= b = State.modify (l </>~ b)
Expand Down Expand Up @@ -82,10 +82,10 @@ l <</>= r = l <%= (</> r)
-- ("hello.!!!","world.!!!")
--
-- @
-- (</>~) :: 'Setter' a b 'FilePath' 'FilePath' -> 'String' -> a -> b
-- (</>~) :: 'Iso' a b 'FilePath' 'FilePath' -> 'String' -> a -> b
-- (</>~) :: 'Lens' a b 'FilePath' 'FilePath' -> 'String' -> a -> b
-- (</>~) :: 'Traversal' a b 'FilePath' 'FilePath' -> 'String' -> a -> b
-- (\<.\>~) :: 'Setter' a b 'FilePath' 'FilePath' -> 'String' -> a -> b
-- (\<.\>~) :: 'Iso' a b 'FilePath' 'FilePath' -> 'String' -> a -> b
-- (\<.\>~) :: 'Lens' a b 'FilePath' 'FilePath' -> 'String' -> a -> b
-- (\<.\>~) :: 'Traversal' a b 'FilePath' 'FilePath' -> 'String' -> a -> b
-- @
(<.>~) :: Setting a b FilePath FilePath -> String -> a -> b
l <.>~ n = over l (<.> n)
Expand All @@ -95,10 +95,10 @@ l <.>~ n = over l (<.> n)
-- | Modify the target(s) of a 'Simple' 'Lens', 'Iso', 'Setter' or 'Traversal' by adding an extension.
--
-- @
-- (<.>=) :: 'MonadState' a m => 'Simple' 'Setter' a 'FilePath' -> 'String' -> m ()
-- (<.>=) :: 'MonadState' a m => 'Simple' 'Iso' a 'FilePath' -> 'String' -> m ()
-- (<.>=) :: 'MonadState' a m => 'Simple' 'Lens' a 'FilePath' -> 'String' -> m ()
-- (<.>=) :: 'MonadState' a m => 'Simple' 'Traversal' a 'FilePath' -> 'String' -> m ()
-- (\<.\>=) :: 'MonadState' a m => 'Simple' 'Setter' a 'FilePath' -> 'String' -> m ()
-- (\<.\>=) :: 'MonadState' a m => 'Simple' 'Iso' a 'FilePath' -> 'String' -> m ()
-- (\<.\>=) :: 'MonadState' a m => 'Simple' 'Lens' a 'FilePath' -> 'String' -> m ()
-- (\<.\>=) :: 'MonadState' a m => 'Simple' 'Traversal' a 'FilePath' -> 'String' -> m ()
-- @
(<.>=) :: MonadState a m => SimpleSetting a FilePath -> String -> m ()
l <.>= b = State.modify (l <.>~ b)
Expand Down

0 comments on commit 4aa7347

Please sign in to comment.