Skip to content

Data family constructors defined in GHCi are not in scope

The following example explains the problem:

> data family Foo a
> data instance Foo Int = FooInt
> :t FooInt

<interactive>:1:1: Not in scope: data constructor `FooInt'

FooInt is defined, but GHCi doesn't recognize it.

Trac metadata
Trac field Value
Version 7.4.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information