~ubuntu-branches/ubuntu/wily/agda/wily-proposed

« back to all changes in this revision

Viewing changes to src/full/Agda/Interaction/Exceptions.hs

  • Committer: Package Import Robot
  • Author(s): Iain Lane, d5cf60f
  • Date: 2015-05-20 13:08:33 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20150520130833-cdcmhagwsouna237
Tags: 2.4.2.2-2
[d5cf60f] Depend on ${shlibs:Depends}, to get libc (& maybe other) deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
1
{-| This module defines the exception handler.
3
2
-}
4
3
module Agda.Interaction.Exceptions where
17
16
failOnException :: (Range -> String -> IO a) -> IO a -> IO a
18
17
failOnException h m = m `E.catch` handleParseException handler
19
18
    where
20
 
        handler x = h (getRange x) (show x)
 
19
        handler x = h (getRange x) (show x)