• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scotty-web / scotty / 220
57%

Build:
DEFAULT BRANCH: master
Ran 05 Feb 2016 07:46AM UTC
Jobs 1
Files 6
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
220

Pull #192

travis-ci

abhinav
Add MonadThrow and MonadCatch instances for ActionT.

Using `catch` and `throwM` on ActionT directly makes for much more readable
code than monad-control:

    lift (somethingThatMayFail >> text "success")
        `catch` (\(e :: IOException) -> text "file does not exist")
        `catch` (\(e :: SomeException) -> text "internal error")

Versus,

    st <- liftWith $ \run ->
        (somethingThatMayFail >> run (text "success"))
        `catch` (\(e :: IOException) -> run (text "file does not exist"))
        `catch` (\(e :: SomeException) -> run (text "internal error"))
    restoreT st
Pull Request #192: Add MonadThrow and MonadCatch instances for ActionT.

187 of 326 relevant lines covered (57.36%)

1.06 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
13
100.0
./Web/Scotty/Internal/Types.hs
Jobs
ID Job ID Ran Files Coverage
3 220.3 (CABALVER=1.22 GHCVER=7.10.3) 05 Feb 2016 07:46AM UTC 0
57.36
Travis Job 220.3
Source Files on build 220
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #220
  • Pull Request #192
  • PR Base - master (#219)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc