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
HLS seems to loop forever typechecking certain code.
I have GHC 9.8.2 and HLS 2.8.0.0, both installed by GHCup on Fedora 33 system.
Heres' complete code to reproduce the issue:
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE QuantifiedConstraints #-}
{-# LANGUAGE TypeOperators #-}
module MyLib where
type family F a
class F a ~ F b => C a b
f :: (forall x. C x x) => ()
f y = _
I run haskell-language-server-9.8.2~2.8.0.0 MyLib.hs on command line and it hangs, consuming 100% cpu. If I change this code just about any way, HLS correctly reports errors and exits. GHC also correctly handles this code, reporting type errors.
The text was updated successfully, but these errors were encountered:
It's about the hole, I didn't succeed hanging HLS without it. I just tried the code from #2731, HLS quickly inferred the hole, so this must be a different issue.
michaelpj
changed the title
HLS hangs
HLS hangs in file with typed hole
May 19, 2024
HLS seems to loop forever typechecking certain code.
I have GHC 9.8.2 and HLS 2.8.0.0, both installed by GHCup on Fedora 33 system.
Heres' complete code to reproduce the issue:
I run
haskell-language-server-9.8.2~2.8.0.0 MyLib.hs
on command line and it hangs, consuming 100% cpu. If I change this code just about any way, HLS correctly reports errors and exits. GHC also correctly handles this code, reporting type errors.The text was updated successfully, but these errors were encountered: