Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- type ProcCount = Int
- type LJMonad a = WriterT String (StateT ProcCount (ErrorT String IO)) a
- type TestCase = String
- type Answer = String
- data Problem = Problem {
- problemStatement :: String
- testCases :: [(TestCase, Answer)]
- problemSetterCode :: String
- timeLimit :: Int
- data Contest = Contest {}
- data StatusCode
- type SubmissionResult = [(TestCase, StatusCode)]
- data MuevalCommand = MuevalCommand {
- expression :: String
- testData :: String
- ansData :: String
- solutionFile :: String
- maxRunTime :: Int
Documentation
type LJMonad a = WriterT String (StateT ProcCount (ErrorT String IO)) a Source
Require logging, state and need to throw exceptions during computation
group together a problem atatement, its input and outputs and max allowed time limit
Problem | |
|
data StatusCode Source
Status code determines the result of evaluation of the submitted code
type SubmissionResult = [(TestCase, StatusCode)] Source
data MuevalCommand Source
All that is required to run a mueval command
MuevalCommand | |
|