]> gitweb.michael.orlitzky.com - dead/halcyon.git/blobdiff - src/Twitter/User.hs
API bump for HaXml >= 1.22.
[dead/halcyon.git] / src / Twitter / User.hs
index a6fd3f6a459f1d547c10b736a853014964c59101..2c199c9d3607d0b3187babaf20c5a3ef44669a08 100644 (file)
@@ -13,7 +13,7 @@ data User = User { screen_name :: String }
 
 
 -- |Create a 'User' from HaXML 'Content'.
-user_from_content :: Content -> (Maybe User)
+user_from_content :: Content -> (Maybe User)
 user_from_content c =
     if (length names) == 0
     then
@@ -25,3 +25,9 @@ user_from_content c =
 
     where
     names = user_screen_name c
+
+
+-- |Get the URL for the given screen name's timeline.
+screen_name_to_timeline_url :: String -> String
+screen_name_to_timeline_url sn =
+    "http://twitter.com/" ++ sn