Changes between Version 42 and Version 43 of ExplicitCallStack


Ignore:
Timestamp:
Jan 30, 2007 4:41:34 PM (7 years ago)
Author:
guest
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ExplicitCallStack

    v42 v43  
    132132And so on. 
    133133 
     134== What does Hat do? == 
     135 
     136As a starting point it is useful to see what Hat does, in particular hat-stack, which is the tool for generating stack traces. The example of `hd []` is exactly the kind of problem that hat-stack is designed to tackle. 
     137 
     138Here is the stack trace generated for the example program. I've added comments on the RHS to indicate what some of the entries mean (because they refer to source code locations). 
     139{{{ 
     140   Program terminated with error: 
     141           hd: empty list 
     142   Virtual stack trace: 
     143   (unknown)       {?} 
     144   (H.hs:17)       error "hd: empty..." 
     145   (H.hs:16)       (\..) [] | case [] 
     146   (H.hs:6)        (\..) [] 
     147   (unknown)       d 
     148}}} 
    134149 
    135150