Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  apt cabal hackage (Amy de Buitl?ir)
   2. Re:  apt cabal hackage (csmagic)
   3. Re:  apt cabal hackage (Daniel Fischer)


----------------------------------------------------------------------

Message: 1
Date: Thu, 22 Sep 2011 10:50:28 +0000 (UTC)
From: Amy de Buitl?ir <[email protected]>
Subject: Re: [Haskell-beginners] apt cabal hackage
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8

csmagic <csmagic <at> gmail.com> writes:

> 
> Thanks Joey, AmyNow I want to go 'backwards'.For example I have 
> Language.Haskell.Exts.SyntaxI want to dig into it.? Where/How do I start?

Using either Hayoo or Hoogle, search for "Language.Haskell.Exts.Syntax". Click 
on
the results to find out more about this module (what package it's in, what
methods it contains, etc.) Does that answer your question?




------------------------------

Message: 2
Date: Thu, 22 Sep 2011 23:48:53 +0530
From: csmagic <[email protected]>
Subject: Re: [Haskell-beginners] apt cabal hackage
To: [email protected]
Message-ID:
        <cab9cb3u4bddsyjo_fe-jy9wzlkdpweox4pznb76qsmbepbg...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On Thu, Sep 22, 2011 at 4:20 PM, Amy de Buitl?ir <[email protected]> wrote:

> csmagic <csmagic <at> gmail.com> writes:
>
> >
> > Thanks Joey, AmyNow I want to go 'backwards'.For example I have
> > Language.Haskell.Exts.SyntaxI want to dig into it.  Where/How do I start?
>
> Using either Hayoo or Hoogle, search for "Language.Haskell.Exts.Syntax".
> Click on
> the results to find out more about this module (what package it's in, what
> methods it contains, etc.) Does that answer your question?
>
>
Ok Thanks Amy.
Language.C was not working yesterday and is working now today.
Maybe I mistyped something

Now I find that I am directed to do at page
http://trac.sivity.net/language_c/wiki/GettingStarted

module Main where
import Language.C
import Language.C.System.GCC   -- preprocessor used
main = parseMyFile "test.c" >>= printMyAST

Whats with the double import?
Does not the contents of Language.C get imported when that is imported?

[Note this is not so much a question specific to Language.C as to the
general nature of module namespace structuring in Haskell]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110922/ab996ed5/attachment-0001.htm>

------------------------------

Message: 3
Date: Thu, 22 Sep 2011 20:43:07 +0200
From: Daniel Fischer <[email protected]>
Subject: Re: [Haskell-beginners] apt cabal hackage
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: Text/Plain;  charset="utf-8"

On Thursday 22 September 2011, 20:18:53, csmagic wrote:
> Now I find that I am directed to do at page
> http://trac.sivity.net/language_c/wiki/GettingStarted
> 
> module Main where
> import Language.C
> import Language.C.System.GCC   -- preprocessor used
> main = parseMyFile "test.c" >>= printMyAST
> 
> Whats with the double import?
> Does not the contents of Language.C get imported when that is imported?

Only if Language.C.System.GCC re-exports Language.C.

By default, nothing (except instance of type classes) imported from another 
module is re-exported, so if you want to use things from both, you have to 
import both (thus you have more fine-grained control of what is in scope in 
your module).

If you want to re-export things from an imported module (because using your 
module wouldn't be convenient without some stuff defined elsewhere), you 
have to include what you want to re-export in the export list of your 
module,

module Mine (module Imported.Module, local, stuff) where

re-exports the entire imported module, to re-export only certain entities, 
list them individually.



------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 39, Issue 26
*****************************************

Reply via email to