Skip to content

Commit

Permalink
cleanup after a rebase from master
Browse files Browse the repository at this point in the history
  • Loading branch information
codedmart committed Nov 24, 2015
1 parent f500ac0 commit 244316d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions servant-client/test/Servant/ClientSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import qualified Network.HTTP.Client as C
import Network.HTTP.Media
import Network.HTTP.Types (Status (..), badRequest400,
methodGet, ok200, status400)
import Network.Socket
import Network.Socket hiding (Raw)
import Network.Wai (Application, responseLBS)
import Network.Wai.Handler.Warp
import System.IO.Unsafe (unsafePerformIO)
Expand Down Expand Up @@ -98,8 +98,8 @@ type Api =
:<|> "param" :> QueryParam "name" String :> Get '[FormUrlEncoded,JSON] Person
:<|> "params" :> QueryParams "names" String :> Get '[JSON] [Person]
:<|> "flag" :> QueryFlag "flag" :> Get '[JSON] Bool
:<|> "rawSuccess" :> Raw
:<|> "rawFailure" :> Raw
:<|> "rawSuccess" :> Raw IO Application
:<|> "rawFailure" :> Raw IO Application
:<|> "multiple" :>
Capture "first" String :>
QueryParam "second" Int :>
Expand Down
4 changes: 2 additions & 2 deletions servant-foreign/src/Servant/Foreign/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ instance (KnownSymbol sym, HasForeign sublayout)

where str = pack . symbolVal $ (Proxy :: Proxy sym)

instance HasForeign Raw where
type Foreign Raw = Method -> Req
instance HasForeign (Raw m a) where
type Foreign (Raw m a) = Method -> Req

foreignFor Proxy req method =
req & funcName %~ ((toLower method) :)
Expand Down
2 changes: 1 addition & 1 deletion servant-server/test/Servant/ServerSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import Servant.API ((:<|>) (..), (:>), Capture, Delete,
HttpVersion, IsSecure (..), JSON,
Patch, PlainText, Post, Put,
QueryFlag, QueryParam, QueryParams,
Raw, RemoteHost, ReqBody,
Raw(..), RemoteHost, ReqBody,
addHeader)
import Servant.Server (Server, serve, ServantErr(..), err404)
import Test.Hspec (Spec, describe, it, shouldBe)
Expand Down

0 comments on commit 244316d

Please sign in to comment.