
9 Sep
2011
9 Sep
'11
6:36 p.m.
On 10 September 2011 07:41, Vasili I. Galchin
Hello,
Is there a list of compiler pragmas?
They are located in the documentation for the implementation that you're using. In particular, ghci will suggest possible pragmas.
Specifically I am looking at how to specify more than one type variable in a class definition. Also I have forgotten the "meta syntax" for specifying a pragma ... some kind of Haskell comment?
At the top of your file: {-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-} (You want the first pragma, and may want the second.) -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com