--- /dev/null
+-----------------------------------------------------------------------------\r
+--\r
+-- GHC API breakpoints. This module includes the main API (BkptHandler) and\r
+-- utility code for implementing a client to this API used in GHCi \r
+--\r
+-- Pepe Iborra (supported by Google SoC) 2006\r
+--\r
+-----------------------------------------------------------------------------\r
+\r
+module Breakpoints where\r
+\r
+import {-#SOURCE#-} HscTypes ( Session )\r
+\r
+data BkptHandler a = BkptHandler {\r
+ handleBreakpoint :: forall b. Session -> [(Id,HValue)] -> BkptLocation a -> String -> b -> IO b\r
+ , isAutoBkptEnabled :: Session -> BkptLocation a -> IO Bool\r
+ }\r
+\r
+nullBkptHandler = BkptHandler {\r
+ isAutoBkptEnabled = \ _ _ -> return False,\r
+ handleBreakpoint = \_ _ _ _ b -> putStrLn "null Bkpt Handler" >> return b\r
+ }\r
+\r
+type BkptLocation a = (a, SiteNumber)\r
+type SiteNumber = Int\r