Skip to content

Commit dc4b4be

Browse files
committed
Improve formatting of haddock
1 parent 22b4d13 commit dc4b4be

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

servant/src/Servant/API/Alternative.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
{-# OPTIONS_HADDOCK not-home #-}
88
module Servant.API.Alternative ((:<|>)(..)) where
99

10+
import Data.Semigroup (Semigroup (..))
1011
import Data.Typeable (Typeable)
1112
import Prelude ()
1213
import Prelude.Compat
@@ -23,6 +24,9 @@ data a :<|> b = a :<|> b
2324
deriving (Typeable, Eq, Show, Functor, Traversable, Foldable, Bounded)
2425
infixr 8 :<|>
2526

27+
instance (Semigroup a, Semigroup b) => Semigroup (a :<|> b) where
28+
(a :<|> b) <> (a' :<|> b') = (a <> a') :<|> (b <> b')
29+
2630
instance (Monoid a, Monoid b) => Monoid (a :<|> b) where
2731
mempty = mempty :<|> mempty
2832
(a :<|> b) `mappend` (a' :<|> b') = (a `mappend` a') :<|> (b `mappend` b')

servant/src/Servant/Utils/Links.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ module Servant.Utils.Links (
8282

8383
-- * Building and using safe links
8484
--
85-
-- | Note that 'URI' is Network.URI.URI from the network-uri package.
85+
-- | Note that 'URI' is from the "Network.URI" module in the @network-uri@ package.
8686
safeLink
8787
, URI(..)
8888
-- * Adding custom types

0 commit comments

Comments
 (0)