Improve formatting of haddock
This commit is contained in:
parent
22b4d1301d
commit
dc4b4be42e
2 changed files with 5 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
{-# OPTIONS_HADDOCK not-home #-}
|
||||
module Servant.API.Alternative ((:<|>)(..)) where
|
||||
|
||||
import Data.Semigroup (Semigroup (..))
|
||||
import Data.Typeable (Typeable)
|
||||
import Prelude ()
|
||||
import Prelude.Compat
|
||||
|
@ -23,6 +24,9 @@ data a :<|> b = a :<|> b
|
|||
deriving (Typeable, Eq, Show, Functor, Traversable, Foldable, Bounded)
|
||||
infixr 8 :<|>
|
||||
|
||||
instance (Semigroup a, Semigroup b) => Semigroup (a :<|> b) where
|
||||
(a :<|> b) <> (a' :<|> b') = (a <> a') :<|> (b <> b')
|
||||
|
||||
instance (Monoid a, Monoid b) => Monoid (a :<|> b) where
|
||||
mempty = mempty :<|> mempty
|
||||
(a :<|> b) `mappend` (a' :<|> b') = (a `mappend` a') :<|> (b `mappend` b')
|
||||
|
|
|
@ -82,7 +82,7 @@ module Servant.Utils.Links (
|
|||
|
||||
-- * Building and using safe links
|
||||
--
|
||||
-- | Note that 'URI' is Network.URI.URI from the network-uri package.
|
||||
-- | Note that 'URI' is from the "Network.URI" module in the @network-uri@ package.
|
||||
safeLink
|
||||
, URI(..)
|
||||
-- * Adding custom types
|
||||
|
|
Loading…
Reference in a new issue