0

I have got a constant l in ghci. And when I put: :t l I got IO ((), Stack EnvEval) Now, I would like to get Stack EnvEval in another constant- something like: let second = giveMeSecond l. How to get it?

Gilgamesz
  • 4,727
  • 3
  • 28
  • 63

1 Answers1

2

ghci executes within IO so you can bind it with <-:

(_, second) <- l
Lee
  • 142,018
  • 20
  • 234
  • 287