ohloh-hs-0.0.2: Interface to the Ohloh API

Safe HaskellNone

Web.Ohloh.Common

Description

Common operations for Web.Ohloh types and convenience functions.

Synopsis

Documentation

queryUrl :: String -> [String] -> Maybe StringSource

Return an URL for the different items that can be queried:

 queryUrl "project" ["ohloh-hs"] == Just "http://www.ohloh.net/projects/ohloh-hs.xml"
 queryUrl "projects" []          == Just "http://www.ohloh.net/projects.xml"

A list of possible items can be retrieved with map fst queryPaths.

withApiKey :: Maybe String -> String -> Maybe StringSource

Append an API key to an URL, i.e.

 queryUrl "language" ["haskell"] `withApiKey` "YOUR_API_KEY"

returns Just "http://www.ohloh.net/languages/haskell.xml?api_key=YOUR_API_KEY".

uncurry3 :: (t1 -> t2 -> t3 -> t) -> (t1, t2, t3) -> tSource

Like uncurry but for functions with 3 arguments.

uncurry4 :: (t1 -> t2 -> t3 -> t4 -> t) -> (t1, t2, t3, t4) -> tSource

Like uncurry but for functions with 4 arguments.

uncurry5 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t) -> (t1, t2, t3, t4, t5) -> tSource

Like uncurry but for functions with 5 arguments.

uncurry6 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t6 -> t) -> (t1, t2, t3, t4, t5, t6) -> tSource

Like uncurry but for functions with 6 arguments.

uncurry7 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t6 -> t7 -> t) -> (t1, t2, t3, t4, t5, t6, t7) -> tSource

Like uncurry but for functions with 7 arguments.

uncurry8 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t6 -> t7 -> t8 -> t) -> (t1, t2, t3, t4, t5, t6, t7, t8) -> tSource

Like uncurry but for functions with 8 arguments.

uncurry9 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t6 -> t7 -> t8 -> t9 -> t) -> (t1, t2, t3, t4, t5, t6, t7, t8, t9) -> tSource

Like uncurry but for functions with 9 arguments.

uncurry10 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t6 -> t7 -> t8 -> t9 -> t10 -> t) -> (t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) -> tSource

Like uncurry but for functions with 10 arguments.

uncurry11 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t6 -> t7 -> t8 -> t9 -> t10 -> t11 -> t) -> (t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) -> tSource

Like uncurry but for functions with 11 arguments.

uncurry13 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t6 -> t7 -> t8 -> t9 -> t10 -> t11 -> t12 -> t13 -> t) -> (t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13) -> tSource

Like uncurry but for functions with 13 arguments.

uncurry14 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t6 -> t7 -> t8 -> t9 -> t10 -> t11 -> t12 -> t13 -> t14 -> t) -> (t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) -> tSource

Like uncurry but for functions with 14 arguments.

uncurry15 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t6 -> t7 -> t8 -> t9 -> t10 -> t11 -> t12 -> t13 -> t14 -> t15 -> t) -> (t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) -> tSource

Like uncurry but for functions with 15 arguments.

uncurry16 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t6 -> t7 -> t8 -> t9 -> t10 -> t11 -> t12 -> t13 -> t14 -> t15 -> t16 -> t) -> (t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16) -> tSource

Like uncurry but for functions with 16 arguments.

uncurry17 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t6 -> t7 -> t8 -> t9 -> t10 -> t11 -> t12 -> t13 -> t14 -> t15 -> t16 -> t17 -> t) -> (t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17) -> tSource

Like uncurry but for functions with 17 arguments.

uncurry18 :: (t1 -> t2 -> t3 -> t4 -> t5 -> t6 -> t7 -> t8 -> t9 -> t10 -> t11 -> t12 -> t13 -> t14 -> t15 -> t16 -> t17 -> t18 -> t) -> (t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18) -> tSource

Like uncurry but for functions with 18 arguments.