Skip to content

Commit 2cb8d77

Browse files
authored
Fix the example in Servant.API.Raw (#1845)
1 parent 96ab0ee commit 2cb8d77

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

servant/src/Servant/API/Raw.hs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ import Data.Typeable (Typeable)
1212
--
1313
-- To plug a Wai 'Application' directly, you must use `Tagged`:
1414
--
15-
-- >>> type API = "foo" :> Get '[JSON] Int :<|> "bar" :> Raw
16-
-- >>>
17-
-- >>> app :: Application
18-
-- >>> app = ...
19-
-- >>>
20-
-- >>> server :: Server API
21-
-- >>> server = pure 42 :<|> Tagged app
15+
-- > type API = "foo" :> Get '[JSON] Int :<|> "bar" :> Raw
16+
-- >
17+
-- > app :: Application
18+
-- > app = ...
19+
-- >
20+
-- > server :: Server API
21+
-- > server = pure 42 :<|> Tagged app
2222
--
2323
-- In addition to just letting you plug in your existing WAI 'Application's,
2424
-- this can also be used with functions from

0 commit comments

Comments
 (0)