@@ -4,7 +4,7 @@
44{-# LANGUAGE FlexibleInstances #-}
55{-# LANGUAGE OverloadedStrings #-}
66{-# LANGUAGE MultiParamTypeClasses #-}
7−module GS10 where
7+module T10 where
88
99import Data.ByteString.Lazy (ByteString)
1010import Data.Text.Lazy (pack)
@@ -13,9 +13,9 @@ import Network.HTTP.Types
1313import Network.Wai
1414import Servant
1515import Servant.Docs
16−import qualified GS3
16+import qualified T3
1717
18−type DocsAPI = GS3.API :<|> Raw
18+type DocsAPI = T3.API :<|> Raw
1919
2020instance ToCapture (Capture "x" Int) where
2121 toCapture _ = DocCapture "x" "(integer) position on the x axis"
@@ -23,8 +23,8 @@ instance ToCapture (Capture "x" Int) where
2323instance ToCapture (Capture "y" Int) where
2424 toCapture _ = DocCapture "y" "(integer) position on the y axis"
2525
26−instance ToSample GS3.Position GS3.Position where
27− toSample _ = Just (GS3.Position 3 14)
26+instance ToSample T3.Position T3.Position where
27+ toSample _ = Just (T3.Position 3 14)
2828
2929instance ToParam (QueryParam "name" String) where
3030 toParam _ =
@@ -33,20 +33,20 @@ instance ToParam (QueryParam "name" String) where
3333 "Name of the person to say hello to."
3434 Normal
3535
36−instance ToSample GS3.HelloMessage GS3.HelloMessage where
36+instance ToSample T3.HelloMessage T3.HelloMessage where
3737 toSamples _ =
38− [ ("When a value is provided for 'name'", GS3.HelloMessage "Hello, Alp")
39− , ("When 'name' is not specified", GS3.HelloMessage "Hello, anonymous coward")
38+ [ ("When a value is provided for 'name'", T3.HelloMessage "Hello, Alp")
39+ , ("When 'name' is not specified", T3.HelloMessage "Hello, anonymous coward")
4040 ]
4141
42−ci :: GS3.ClientInfo
43−ci = GS3.ClientInfo "Alp" "alp@foo.com" 26 ["haskell", "mathematics"]
42+ci :: T3.ClientInfo
43+ci = T3.ClientInfo "Alp" "alp@foo.com" 26 ["haskell", "mathematics"]
4444
45−instance ToSample GS3.ClientInfo GS3.ClientInfo where
45+instance ToSample T3.ClientInfo T3.ClientInfo where
4646 toSample _ = Just ci
4747
48−instance ToSample GS3.Email GS3.Email where
49− toSample _ = Just (GS3.emailForClient ci)
48+instance ToSample T3.Email T3.Email where
49+ toSample _ = Just (T3.emailForClient ci)
5050
5151api :: Proxy DocsAPI
5252api = Proxy
@@ -55,12 +55,12 @@ docsBS :: ByteString
5555docsBS = encodeUtf8
5656 . pack
5757 . markdown
58− $ docsWithIntros [intro] GS3.api
58+ $ docsWithIntros [intro] T3.api
5959
6060 where intro = DocIntro "Welcome" ["This is our super webservice's API.", "Enjoy!"]
6161
6262server :: Server DocsAPI
63−server = GS3.server :<|> serveDocs
63+server = T3.server :<|> serveDocs
6464
6565 where serveDocs _ respond =
6666 respond $ responseLBS ok200 [plain] docsBS