mno2
Haskell 趣學指南

Updated 2 years ago

Eric Fu (@fuyufjh) started discussion #34

4 months ago · 0 comments

Open

In lastest ghc version Monad is defined on Applicative

:info Monad
class Applicative m => Monad (m :: * -> *) where
  (>>=) :: m a -> (a -> m b) -> m b
  (>>) :: m a -> m b -> m b
  return :: a -> m a
  fail :: String -> m a
  {-# MINIMAL (>>=) #-}
  	-- Defined in ‘GHC.Base’

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant