mote icon indicating copy to clipboard operation
mote copied to clipboard

Case expansion when constructors aren't in scope

Open imeckler opened this issue 9 years ago • 0 comments

Suppose

f :: Int -> ()
f x = _

Then CaseOn x results in

f :: Int -> ()
f x = case x of
  GHC.Types.I# i# -> _

This shouldn't happen since the constructor is out of scope. Give a suggestion to add the necessary import in the info box (or perhaps do it automatically).

imeckler avatar Apr 26 '15 04:04 imeckler