@@ -27,7 +27,7 @@ import Prelude ()
2727
2828-- | The list of all gists created by the user
2929--
30- -- > gists' (Just ( "github-username", "github-password") ) "mike-burns"
30+ -- > gists' (Just $ BasicAuth "github-username" "github-password") "mike-burns"
3131gists' :: Maybe Auth -> Name Owner -> IO (Either Error (Vector Gist ))
3232gists' auth user =
3333 executeRequestMaybe auth $ gistsR user FetchAll
@@ -45,7 +45,7 @@ gistsR user = pagedQuery ["users", toPathPart user, "gists"] []
4545
4646-- | A specific gist, given its id, with authentication credentials
4747--
48- -- > gist' (Just ( "github-username", "github-password") ) "225074"
48+ -- > gist' (Just $ BasicAuth "github-username" "github-password") "225074"
4949gist' :: Maybe Auth -> Name Gist -> IO (Either Error Gist )
5050gist' auth gid =
5151 executeRequestMaybe auth $ gistR gid
@@ -64,7 +64,7 @@ gistR gid =
6464
6565-- | Star a gist by the authenticated user.
6666--
67- -- > starGist ("github-username", "github-password") "225074"
67+ -- > starGist (BasicAuth "github-username" "github-password") "225074"
6868starGist :: Auth -> Name Gist -> IO (Either Error () )
6969starGist auth gid = executeRequest auth $ starGistR gid
7070
@@ -75,7 +75,7 @@ starGistR gid = Command Put ["gists", toPathPart gid, "star"] mempty
7575
7676-- | Unstar a gist by the authenticated user.
7777--
78- -- > unstarGist ("github-username", "github-password") "225074"
78+ -- > unstarGist (BasicAuth "github-username" "github-password") "225074"
7979unstarGist :: Auth -> Name Gist -> IO (Either Error () )
8080unstarGist auth gid = executeRequest auth $ unstarGistR gid
8181
@@ -86,7 +86,7 @@ unstarGistR gid = command Delete ["gists", toPathPart gid, "star"] mempty
8686
8787-- | Delete a gist by the authenticated user.
8888--
89- -- > deleteGist ("github-username", "github-password") "225074"
89+ -- > deleteGist (BasicAuth "github-username" "github-password") "225074"
9090deleteGist :: Auth -> Name Gist -> IO (Either Error () )
9191deleteGist auth gid = executeRequest auth $ deleteGistR gid
9292
0 commit comments