Вопрос

Is there a way to combine both :main and :trace commands in GHCi? I need to trace an exception in an app that needs input arguments.

Это было полезно?

Решение

Sure, it's simply :trace main.

Do not forget about :set -fbreak-on-error and :set -fbreak-on-exception.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top