Skip to content

Inline eval no longer capable of using "it" to reference the output of the previous inline #1577

Closed
@gabrielbcn

Description

@gabrielbcn

Obviously the inline code evaluation is amazing, but in previous versions I used to do this:

-- >>> example
-- >>> used it
-- >>> fresh it
-- \a. \x. (\y. a) x b
-- ["a","b","x","y"]
-- "c"

So I would use it to refer to the previous output, the same as in a ghci session,

Now the following happens:

-- >>> example
-- >>> used it
-- >>> fresh it
-- \a. \x. (\y. a) x b
-- Variable not in scope: it :: Term
-- Variable not in scope: it :: [Var]

it can still be sorted in many ways, a very ugly one with variables:

-- >>> example
-- >>> it1 = example
-- >>> used it1
-- >>> it2 = used it1
-- >>> fresh it2
-- \a. \x. (\y. a) x b
-- ["a","b","x","y"]
-- "c"

But it is really a pity because removes the versatility of it that just brings the previous output whatever it was.

Any chance to bring it back?

Thanks a lot

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-eval-plugintype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions