func: remove #[cfg(doc)]

This commit is contained in:
AF 2023-07-30 11:08:20 +00:00
parent a881a77dd3
commit 0b9858aa3e

View File

@ -28,8 +28,6 @@ pub use self::applicative_select::{
}; };
use self::controlflow::{ControlFlow, Iterative}; use self::controlflow::{ControlFlow, Iterative};
pub use self::extensions::MonadExt; pub use self::extensions::MonadExt;
#[cfg(doc)]
use self::instances::stackless::StacklessInstance;
/// Part of Haskell's `Functor f` responsible for having `f a`. /// Part of Haskell's `Functor f` responsible for having `f a`.
/// ///
@ -119,6 +117,8 @@ pub trait Monad<'a>: Applicative<'a> {
/// Generally, [`Monad::bind`] should be enough implement it. /// Generally, [`Monad::bind`] should be enough implement it.
/// See [`StacklessInstance::iterate`] for a generic, though less-than ideal, blanket implementation. /// See [`StacklessInstance::iterate`] for a generic, though less-than ideal, blanket implementation.
/// On practice, you generally shouldn't be using [`Monad::bind`]/[`Pure::pure`]/[`Functor::fmap`] here. /// On practice, you generally shouldn't be using [`Monad::bind`]/[`Pure::pure`]/[`Functor::fmap`] here.
///
/// [`StacklessInstance::iterate`]: crate::func::instances::stackless::StacklessInstance::iterate
fn iterate<B: 'a>(f: impl Iterative<'a, T = Self, B = B>) -> Self::F<B>; fn iterate<B: 'a>(f: impl Iterative<'a, T = Self, B = B>) -> Self::F<B>;
/// Equivalent of Haskell's `join`. /// Equivalent of Haskell's `join`.