
29 Apr
2013
29 Apr
'13
11:52 p.m.
Common practice are the Common.hs, Types.hs or Internal.hs modules with the internally shared code of your package.
Just import them on modules Aaa and Bbb and reexport what is needed by the users of those modules so they can write only one import declaration.
Look at http://hackage.haskell.org/packages/archive/binary/0.7.0.1/doc/html/Data-Bin... and http://hackage.haskell.org/packages/archive/blaze-builder/0.3.1.1/doc/html/B... (the Builder type is in Blaze.ByteString.Builder.Internal.Types and is used everywhere).
On Apr 29, 2013, at 10:44 AM, Brent Yorgey
example, you will often see a module named something like 'Foo.Bar.Types' which contains declarations of common types which are used in many other modules.