
Hi. This is not standard haskell98, right? It appears as though a container module can very succinctly expose ALL items exposed by "submodules" that it has imported within itself. Does anyone know where I can find a document specifying the language behaviour for code that does this? ------------------------------------------------------------------------------------------------------------ module XMonad ( module XMonad.Main, module XMonad.Core, module XMonad.Config, module XMonad.Layout, module XMonad.ManageHook, module XMonad.Operations, module Graphics.X11, module Graphics.X11.Xlib.Extras, (.|.), MonadState(..), gets, modify, MonadReader(..), asks, MonadIO(..) ) where -- core modules import XMonad.Main import XMonad.Core import XMonad.Config import XMonad.Layout import XMonad.ManageHook import XMonad.Operations -- import XMonad.StackSet -- conflicts with 'workspaces' defined in XMonad.hs -- modules needed to get basic configuration working import Data.Bits import Graphics.X11 hiding (refreshKeyboardMapping) import Graphics.X11.Xlib.Extras import Control.Monad.State import Control.Monad.Reader -- mac

On Sat, Jul 10, 2010 at 8:41 AM, matthew coolbeth
Hi. This is not standard haskell98, right? It appears as though a container module can very succinctly expose ALL items exposed by "submodules" that it has imported within itself. Does anyone know where I can find a document specifying the language behaviour for code that does this?
Yes, it is Haskell 98 =D. http://www.haskell.org/onlinereport/modules.html#sect5.2 Cheers! -- Felipe.

On Saturday 10 July 2010 13:44:55, Felipe Lessa wrote:
On Sat, Jul 10, 2010 at 8:41 AM, matthew coolbeth
wrote: Hi. This is not standard haskell98, right? It appears as though a container module can very succinctly expose ALL items exposed by "submodules" that it has imported within itself. Does anyone know where I can find a document specifying the language behaviour for code that does this?
Yes, it is Haskell 98 =D.
Except that hierarchical modules weren't in H98. (Everybody got hierarchical modules very soon, however, and they're in H2010.)
http://www.haskell.org/onlinereport/modules.html#sect5.2
Cheers!
participants (3)
-
Daniel Fischer
-
Felipe Lessa
-
matthew coolbeth