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
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
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
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