Karya, built on 2020-11-26T21:03:17 (patch 23b5be2d53a9e8e7d6136cda5aae2849abe5cded)
Safe HaskellNone

Ness.Util

Synopsis

Documentation

type Render score = SamplingRate -> score -> (Text, Text) Source #

submitMany :: SamplingRate -> Render score -> IO.FilePath -> [(IO.FilePath, score)] -> IO.IO () Source #

download :: Submit.Url -> IO.FilePath -> IO.FilePath -> IO.IO () Source #

I think the web service gives no way to tell if the file is complete. Redownload manually if it was partial.

submitAndCheck :: IO.FilePath -> [(out, Text, (Text, Text))] -> IO.IO [(Submit.Url, out, IO.FilePath)] Source #

Submit scores in their own subdirs, check the output for duplicate responses, and pair them with their destination output.

findDups :: Ord k => (a -> k) -> [a] -> [(Int, a)] Source #

data Interactive score Source #

Constructors

Interactive 

Fields

interactive :: String -> Render score -> score -> Interactive score Source #

forConcurrent :: Int -> [a] -> (a -> IO.IO b) -> IO.IO [b] Source #

forDelay :: Int -> [a] -> (a -> IO.IO b) -> IO.IO [b] Source #

mapDelay :: Int -> (a -> IO.IO b) -> [a] -> IO.IO [b] Source #

mapConcurrent :: Int -> (a -> IO.IO b) -> [a] -> IO.IO [b] Source #

zeroPad :: Show a => Int -> a -> String Source #