git.iko.soy/typeable/servant
on master help sign in
Merge pull request #156 from haskell-servant/jkarni/overlappable-alt-doc

Make HasDocs instance for :<|> overlappable.

commitf7d25c5b351a02ae77a6d14c922155f7a3da1575 authorAlp Mestanogullari <alpmestan@gmail.com> dateTue 21 Jul 2015, 16:17 (11 years ago) parent3209f98e29acc0
1 file changed+5−1
servant-docs/src/Servant/Docs/Internal.hs+5−1
servant-docs/src/Servant/Docs/Internal.hs+5−1
@@ -624,7 +624,11 @@ markdown api = unlines $
624624
625625-- | The generated docs for @a ':<|>' b@ just appends the docs
626626-- for @a@ with the docs for @b@.
627−instance (HasDocs layout1, HasDocs layout2)
627+instance
628+#if MIN_VERSION_base(4,8,0)
629+ {-# OVERLAPPABLE #-}
630+#endif
631+ (HasDocs layout1, HasDocs layout2)
628632 => HasDocs (layout1 :<|> layout2) where
629633
630634 docsFor Proxy (ep, action) = docsFor p1 (ep, action) <> docsFor p2 (ep, action)