Documentation ¶
Overview ¶
Package monad implements common monomorphic monads.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EitherStr ¶
EitherStr is a monomorphic Either monad specialized to string. I miss Haskell.
func (*EitherStr) Bind ¶
func (r *EitherStr) Bind(f EitherStrFunc) *EitherStr
Bind lifts EitherStrFuncs into the EitherStr monad.
type EitherStrFunc ¶
EitherStrFunc defines monadic EitherStr functions.
type EitherVCS ¶
type EitherVCS struct { Result cli.VCS Err error }
EitherVCS is an Either monad specialized to VCS.
func (*EitherVCS) BindVCS ¶
func (r *EitherVCS) BindVCS(f EitherVCSFunc) *EitherVCS
BindVCS lifts EitherVCSFuncs into the EitherVCS monad.
type EitherVCSFunc ¶
type EitherVCSFunc func(previous cli.VCS) (cli.VCS, error)
EitherVCSFunc defines monadic EitherVCS functions.
Click to show internal directories.
Click to hide internal directories.