vimeta-0.2.1.0: Frontend for video metadata tagging tools

Safe HaskellNone
LanguageHaskell2010

Vimeta.Core.Vimeta

Synopsis

Documentation

newtype Vimeta m a Source

Constructors

Vimeta 

Fields

unV :: ReaderT Context (EitherT String m) a
 

Instances

class Monad m => MonadIO m where

Monads in which IO computations may be embedded. Any monad built by applying a sequence of monad transformers to the IO monad will be an instance of this class.

Instances should satisfy the following laws, which state that liftIO is a transformer of monads:

Methods

liftIO :: IO a -> m a

Lift a computation from the IO monad.

Instances

MonadIO IO 
MonadIO TheMovieDB 
MonadIO m => MonadIO (Byline m) 
MonadIO m => MonadIO (IdentityT m) 
MonadIO m => MonadIO (MaybeT m) 
MonadIO m => MonadIO (ListT m) 
MonadIO m => MonadIO (ResourceT m) 
MonadIO m => MonadIO (PErrorT m) 
MonadIO m => MonadIO (Vimeta m) 
MonadIO m => MonadIO (RandT g m) 
(Monoid w, MonadIO m) => MonadIO (WriterT w m) 
(Monoid w, MonadIO m) => MonadIO (WriterT w m) 
MonadIO m => MonadIO (StateT s m) 
MonadIO m => MonadIO (StateT s m) 
MonadIO m => MonadIO (ReaderT r m) 
(Error e, MonadIO m) => MonadIO (ErrorT e m) 
MonadIO m => MonadIO (EitherT e m) 
MonadIO m => MonadIO (ContT r m) 
MonadIO m => MonadIO (ExceptT e m) 
MonadIO m => MonadIO (ParsecT s u m) 
(Monoid w, MonadIO m) => MonadIO (RWST r w s m) 
(Monoid w, MonadIO m) => MonadIO (RWST r w s m) 

die :: Monad m => String -> Vimeta m a Source

Terminate a Vimeta session with an error message.

runIO :: MonadIO m => IO a -> Vimeta m a Source

tmdb :: MonadIO m => TheMovieDB a -> Vimeta m a Source

Run a TheMovieDB operation.

verbose :: MonadIO m => Text -> Vimeta m () Source

execVimetaWithContext :: MonadIO m => Context -> Vimeta m a -> m (Either String a) Source

Very primitive way of running a Vimeta value with the given Context. Mostly useful for running vimeta action within another vimeta action.

execVimeta Source

Arguments

:: MonadIO m 
=> (Config -> Config)

Modify configuration before running.

-> Vimeta m a

The Vimeta value to execute.

-> m (Either String a)

The result.

Run a Vimeta operation after loading the configuration file from disk.

runVimeta :: MonadIO m => Vimeta m a -> m (Either String a) Source

Simple wrapper around execVimeta.

ask :: MonadReader r m => m r

Retrieves the monad environment.

asks

Arguments

:: forall (m :: * -> *). MonadReader r m 
=> (r -> a)

The selector function to apply to the environment.

-> m a 

Retrieves a function of the current environment.

liftIO :: MonadIO m => forall a. IO a -> m a

Lift a computation from the IO monad.