moss-0.2.0.1: Haskell client for Moss
Safe HaskellNone
LanguageHaskell2010

Stanford.Moss

Synopsis

Documentation

data MossCfg Source #

Represents configurations for a Moss connection.

Instances

Instances details
Eq MossCfg Source # 
Instance details

Defined in Stanford.Moss

Methods

(==) :: MossCfg -> MossCfg -> Bool #

(/=) :: MossCfg -> MossCfg -> Bool #

Show MossCfg Source # 
Instance details

Defined in Stanford.Moss

defaultMossCfg :: MossCfg Source #

defaultMossCfg is the default configuration for a Moss connection.

data Language Source #

Enumerates programming languages supported by Moss.

Instances

Instances details
Enum Language Source # 
Instance details

Defined in Stanford.Moss

Eq Language Source # 
Instance details

Defined in Stanford.Moss

Show Language Source # 
Instance details

Defined in Stanford.Moss

type Moss = StateT MossSt IO Source #

The type of computations which use a connection to Moss.

liftIO :: MonadIO m => IO a -> m a #

Lift a computation from the IO monad.

withMoss :: MossCfg -> Moss a -> IO a Source #

withMoss cfg m runs a computation m using a Moss connection whose configuration is reprsented by cfg.

addBaseFile :: String -> FilePath -> Moss () Source #

addBaseFile file adds file as part of the skeleton code.

addFile :: String -> FilePath -> Moss () Source #

addFile name file adds file as a submission to Moss with name.

addFilesForStudent :: [(String, FilePath)] -> Moss () Source #

addFilesForStudent filesWithNames uploads multiple files for the same student. I.e. in the Moss submission they will share the same ID.

query :: ByteString -> Moss (Maybe ByteString) Source #

query comment runs the plagiarism check on all submitted files. The URL of the report is returned if Moss was able to perform the checks successfully.