You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function show-type-at works fine and returns correct results in these cases (active region wrapping several lines), the only caveat is that currently it passes marked expression as fifth argument to type at command and it confuses REPL and brings errors:
Haskell presentation buffer contents:
dolet x ="Hello, World!"::String->IO()<interactive>:50:6-13:No instance for (Show (String->IO()))
arising from a use of‘print’In a stmt of an interactive GHCi command:print it
Haskell process log contents:
->:type-at /Users/arthurfayzrakhmanov/Haskell/test/HelloWorld.hs 33414dolet x ="Hello, World!"putStrLn<-dolet x ="Hello, World!"::String->IO()�<interactive>:50:6-13:No instance for (Show (String->IO()))
arising from a use of‘print’In a stmt of an interactive GHCi command:print it
The fifth argument of :type-at is optional and plays auxiliary role:
The
:type-at
command works fine when you ask a type for several line, for examplefollowing command will infer type for region starts from
do
and ends atx
on the next line:and even without
x
:The function
show-type-at
works fine and returns correct results in these cases (active region wrapping several lines), the only caveat is that currently it passes marked expression as fifth argument to type at command and it confuses REPL and brings errors:Haskell presentation buffer contents:
Haskell process log contents:
The fifth argument of
:type-at
is optional and plays auxiliary role:So we have at least two options to make world better:
haskell-utils-reduce-string
1 before pass it to:type-at
commandhaskell-mode-message-line
2 does"expr"
.Any thoughts?
The text was updated successfully, but these errors were encountered: