Re: [Haskell-cafe] some questions about Template Haskell

2013-06-29 Thread Richard Eisenberg
Hi TP, The reason that your initial example doesn't work is that Template Haskell splices can be used in four places: expressions, types, patterns (I think), and top-level declarations. The number in a fixity declaration is none of these. It's not an expression because you must write a literal

Re: [Haskell-cafe] some questions about Template Haskell

2013-06-29 Thread TP
TP wrote: > 2/ If I define in a module: > > j = 3 > > and then define in another module: > > --- > h x = $([|j|]) > main = do > print $ h undefined > --- > > I obtain "3" as expected. > > However, I do not achieve to make this system work with an infix > declar

Re: [Haskell-cafe] ANNOUNCE: module-management-0.9.3 - clean import lists, split and merge modules

2013-06-29 Thread David Fox
I've just uploaded version 0.10, which corrects some formatting bugs and incorporates most of the changes suggested in this thread. Please give it a try! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/hask

[Haskell-cafe] Subclass or no subclass?

2013-06-29 Thread Patrick Browne
Hi,The runtime behaviour of the two modules below *seems* to be the same.Is this correct? I am not trying to say "every building is a shelter", rather "anything that is a building must provide sheltering services".I think that the use of sub-classes makes this explicit, but it *seems* that one gets