I have two .hs files: one contains a new type declaration, and the other uses it.
first.hs:
module first () where
type S = SetType
data SetType = S[Integer]
second.hs:
module second () where
import first
When I run second.hs, both modules first, second are loaded just fine.
But, when I write :type
S on Haskell platform, the following error appears
Not in scope : data constructor 'S'
Note: There are some functions in each module for sure, I'm just skipping it for brevity