import with hiding

George Russell ger at tzi.de
Fri Aug 3 09:21:51 EDT 2001


DaVinciTypes defines the types "DaVinciAnswer" and the constructor "Context".
(.hi file attached.)
So I would expect

import DaVinciTypes hiding (Context)
import qualified DaVinciTypes 

to make DaVinciAnswer in scope, but DaVinciTypes.Context only available when so qualified.
This doesn't appear to be the case with the following command line on Sparc/Solaris:

/usr/local/pub-bkb/ghc/ghc-latest/bin/ghc -c DaVinciBasicTest.hs -package concurrent -package data -package net -package posix -package text -package util -package lang -i.:/home/ger/uni/util:/home/ger/uni/events:/home/ger/uni/reactor:/home/ger/uni/server:/home/ger/uni/htk:/home/ger/uni/davinci:/home/ger/uni/graphs:/home/ger/uni/tools:/home/ger/uni/cvs:/home/ger/uni/types -fglasgow-exts -fallow-overlapping-instances -fallow-undecidable-instances -cpp -ddump-hi-diffs -H25M -recomp -fwarn-deprecations -Onot -DDEBUG -fasm

and attached file DaVinciBasicTest.hs, for I get the error

DaVinciBasicTest.hs:7:
    Type constructor or class not in scope: `DaVinciAnswer'

What's going on please?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DaVinciTypes.hi
Type: application/octet-stream
Size: 16303 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20010803/598c32da/DaVinciTypes.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DaVinciBasic.hs
Type: application/octet-stream
Size: 12987 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20010803/598c32da/DaVinciBasic.obj


More information about the Glasgow-haskell-bugs mailing list