On 10-11-10 02:51 PM, Albert Y. C. Lai wrote:
import SinisterlyNamedModule( par...@goodtype(st...@caseone(st...@gfa), c...@casetwo(ru...@gfb, froml...@gfc) ),
Sorry, that part was mistaken, and not in line with standard Haskell. Here is the correction, and more in line with standard Haskell:
import SinisterlyNamedModule( par...@goodtype(st...@caseone, c...@casetwo, st...@gfa, ru...@gfb, froml...@gfc ), It also streamlines doing this. Assume SecondModule: module SecondModule where data Functor = Applicative { join :: String } | Category { join :: String, fix :: [Functor] } Then to import and rename: import SecondModule( func...@personnel(applicat...@worker, categ...@supervisor, j...@employee_name, f...@subordinates ) ) join is consistently renamed to employee_name, in particular. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe