Free variable in the GHCi debugger

The GHC User Guide section of the GHCI debugger states:

GHCi provided bindings for the free variables of the expression on which the breakpoint ( a, left, right ) was placed, as well as a binding for the result of the expression ( _result ).

So the free variables here are a, left, right .

Why is a variable not a free variable?

+4
source share
1 answer

The breakpoint was placed on line 2, which reads

qsort (a:as) = qsort left ++ [a] ++ qsort right 

but the breakpoint will be in the expression to the right of = , as said:

 Breakpoint 0 activated at qsort.hs:2:15-46 

so that characters 15-46 are on the right side. as not displayed on the right side, so why is this not a free variable of this expression.

+5
source

All Articles