Re: [Haskell-cafe] List of exports of a module - are there alternatives?

2009-05-13 Thread Colin Paul Adams
 Andrew == Andrew Wagner wagner.and...@gmail.com writes:

Andrew Uh, show me such a module, and I'll show you a module
Andrew that's quite bloated and desperately needs to be
Andrew refactored.

How about a module that provides the official Unicode names for each character?
-- 
Colin Adams
Preston Lancashire
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] List of exports of a module - are there alternatives?

2009-05-13 Thread Miguel Mitrofanov



Neil Brown wrote on 13.05.2009 14:23:
Leaving aside the arguments about 
200 exports, even for 20 exports it would sometimes be cleaner to write 
the above to hide one, than to spell out the other 19 in an export list.


Note that Haddock orders exports according to the export list, not to an order of definition. Also, you can have (sub)sections in documentation 
using an export list only. Therefore, it's still better to have an export list, even if you export 19 functions and hide one.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] List of exports of a module - are there alternatives?

2009-05-13 Thread Henning Thielemann
Miguel Mitrofanov schrieb:
 
 Neil Brown wrote on 13.05.2009 14:23:
 Leaving aside the arguments about 200 exports, even for 20 exports it
 would sometimes be cleaner to write the above to hide one, than to
 spell out the other 19 in an export list.
 
 Note that Haddock orders exports according to the export list, not to an
 order of definition. Also, you can have (sub)sections in documentation
 using an export list only. Therefore, it's still better to have an
 export list, even if you export 19 functions and hide one.

You can move the few non-exported functions to a hidden module. (hope
there are no dependencies on exported functions)
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] List of exports of a module - are there alternatives?

2009-05-12 Thread Maurício
Hi,

When we want to list which declarations are exported by a module
we do:

module Mod ( list of exports ) where ...

Are there propositions to alternatives to that (I could not
find one)? Like, say, add a do export or do not export
tag to declarations we want to (not) export?

(I think something like that could be nice when we have modules
with 200 declarations and just a few are (not) going to be
exported.)

Thanks,
Maurício


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] List of exports of a module - are there alternatives?

2009-05-12 Thread Miguel Mitrofanov
I think that it's not nice to export 200 declarations from a single  
module.


On 12 May 2009, at 18:05, Maurício wrote:


Hi,

When we want to list which declarations are exported by a module
we do:

module Mod ( list of exports ) where ...

Are there propositions to alternatives to that (I could not
find one)? Like, say, add a do export or do not export
tag to declarations we want to (not) export?

(I think something like that could be nice when we have modules
with 200 declarations and just a few are (not) going to be
exported.)

Thanks,
Maurício


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] List of exports of a module - are there alternatives?

2009-05-12 Thread Andrew Wagner
On Tue, May 12, 2009 at 10:05 AM, Maurício briqueabra...@yahoo.com wrote:
snip

 (I think something like that could be nice when we have modules
 with 200 declarations and just a few are (not) going to be
 exported.)

 Thanks,
 Maurício


Uh, show me such a module, and I'll show you a module that's quite bloated
and desperately needs to be refactored.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] List of exports of a module - are there alternatives?

2009-05-12 Thread Daniel Peebles
I would like to see this too. Maybe just a private keyword that would
make everything after it invisible to the outside (or until a public
keyword appeared)?

On Tue, May 12, 2009 at 10:05 AM, Maurício briqueabra...@yahoo.com wrote:
 Hi,

 When we want to list which declarations are exported by a module
 we do:

 module Mod ( list of exports ) where ...

 Are there propositions to alternatives to that (I could not
 find one)? Like, say, add a do export or do not export
 tag to declarations we want to (not) export?

 (I think something like that could be nice when we have modules
 with 200 declarations and just a few are (not) going to be
 exported.)

 Thanks,
 Maurício


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe