make Grin.Linear deal with local function definitions
make Grin.Linear deal with local function definitions

darcs-hash:ea45cbd022fb5041e0f3e78f01d887ba16ebdf04

dpwright/jhc,dpwright/jhc,dpwright/jhc,dpwright/jhc