Skip to content

Commit

Permalink
It builds!
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoerzen committed Jun 14, 2013
1 parent ffff00f commit d455489
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions OAuth.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ twitterKeys = (twitterDeObfuscator (fst obfuscatedTwitterKeys),
twitterDeObfuscator :: String -> String
twitterDeObfuscator = reverse . map rot13

instance Show Application where
show (Application a b c) = "Application " ++ show a ++ " " ++ show b ++ " " ++ show c

instance Show Token where
show (TwoLegg app oauthp) = "TwoLegg " ++ show app ++ " " ++ show oauthp
show (ReqToken app oauthp) = "ReqToken " ++ show app ++ " " ++ show oauthp
show (AccessToken app oauthp) = "AccessToken " ++ show app ++ " " ++ show oauthp

rot13 :: Char -> Char
rot13 x =
case lookup x trans of
Expand Down

0 comments on commit d455489

Please sign in to comment.