Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force ghc to import a hidden module

Tags:

haskell

ghc

I needed some functions out of a hidden module. If I import Graphics.UI.Gtk.Types I recieve:

Could not find module `Graphics.UI.Gtk.Types'
it is a hidden module in the package `gtk-0.12.4'

How can I import this hidden module without editing and recompiling gtk?

like image 448
mcjohnalds45 Avatar asked Nov 24 '13 20:11

mcjohnalds45


1 Answers

No you can not expose modules that are not exported by a package. If you need something from that module to use the package then the functionality should be available via another (exposed) module.

like image 79
Thomas M. DuBuisson Avatar answered Nov 11 '22 07:11

Thomas M. DuBuisson