Skip to content

Commit

Permalink
Merge pull request #148 from georgefst/debug-haddock
Browse files Browse the repository at this point in the history
Fix docs for `debug`
  • Loading branch information
hamishmack authored Oct 30, 2024
2 parents d371de6 + a9a5d3d commit b72b4d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jsaddle-warp/src/Language/Javascript/JSaddle/WebSockets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,9 @@ jsaddleJs' jsaddleUri refreshOnLoad = "\
\"

-- | Start or restart the server.
-- To run this as part of every :reload use
-- > :def! reload (const $ return "::reload\nLanguage.Javascript.JSaddle.Warp.debug 3708 SomeMainModule.someMainFunction")
-- To run this as part of every GHCI @:reload@ use:
--
-- >>> :def! reload (const $ return "::reload\nLanguage.Javascript.JSaddle.Warp.debug 3708 SomeMainModule.someMainFunction")
debug :: Int -> JSM () -> IO ()
debug port f = do
debugWrapper $ \withRefresh registerContext ->
Expand Down

0 comments on commit b72b4d0

Please sign in to comment.