Skip to content

Commit

Permalink
server: comment tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
soenkehahn committed Jan 15, 2016
1 parent e8f9bc0 commit 086e53a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions servant-server/test/Servant/Server/Internal/ConfigSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ spec = do
(NamedConfig subConfig :: NamedConfig "sub" '[Char])
:. EmptyConfig
subConfig = 'b' :. EmptyConfig
it "allows to extract subconfigs" $ do
it "allows extracting subconfigs" $ do
descendIntoNamedConfig (Proxy :: Proxy "sub") config `shouldBe` subConfig

it "allows to extract entries from subconfigs" $ do
it "allows extracting entries from subconfigs" $ do
getConfigEntry (descendIntoNamedConfig (Proxy :: Proxy "sub") config :: Config '[Char])
`shouldBe` 'b'

Expand Down
2 changes: 1 addition & 1 deletion servant-server/test/Servant/Server/UsingConfigSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,5 @@ spec4 :: Spec
spec4 = do
with (return namedConfigApp) $ do
describe "WithNamedConfig" $ do
it "allows to descend into a subconfig for a given api" $ do
it "allows descending into a subconfig for a given api" $ do
get "/" `shouldRespondWith` "\"descend\""
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}

-- | These are custom combinators for S.S.UsingConfigSpec. It's split up into
-- its own module to be able to test how exactly module import work when using
-- the config.
-- | These are custom combinators for Servant.Server.UsingConfigSpec.
--
-- (For writing your own combinators you need to import Internal modules, for
-- just *using* combinators that require a Config, you don't. This module is
-- separate from Servant.Server.UsingConfigSpec to test that the module imports
-- work out this way.)
module Servant.Server.UsingConfigSpec.TestCombinators where

import GHC.TypeLits
Expand Down

1 comment on commit 086e53a

@codedmart
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is much more clear to me.

Please sign in to comment.