30 Apr 2010 22:37
Re: Haskell 2010 libraries
On 30/04/10 13:19, Malcolm Wallace wrote: >> 4. Provide a haskell2010 package and a base2010 package that >> re-exports all of base except the modules that overlap with >> haskell2010. You can either use haskell2010, >> haskell2010+base2010, or base. This is a bit like (1), but >> avoids the need for shadowing by using package re-exports, >> on the other hand confusion could well arise due to the >> strange base2010 package, and some people would surely try >> to use haskell2010 + base and run into difficulties. > > In many ways this corresponds to my preferred solution, although I would > rephrase it thus: > > * Deprecate use of the "base" package, (I do not mean to remove "base", > just to freeze it, and discourage its general use.) > * Create a new "haskell2010" package (for ghc this will be built on topcommon > of "base", but other compilers might make a different choice). > * Create a new "portablebase" package which contains (or re-exports) > all of the remaining useful and portable parts of the current "base" > _and_ "haskell2010". > * Create a new "ghcextras" package which re-exports (or defines afresh) > all of the useful but non-portable parts of the current "base". So it seems this is closer to option (2) in my message, because portablebase and haskell2010 overlap, and are therefore mutually exclusive, whereas in (4) haskell2010 and base2010 are non-overlapping - that's the crucial difference. I described this as a non-option because I thought trying to use the packages together might be a common problem that leads to obscure error(Continue reading)
I think that putting version numbers into module names is
RSS Feed