[Haskell-cafe] compiler "pragma"'s

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Sat Sep 10 00:36:45 CEST 2011


On 10 September 2011 07:41, Vasili I. Galchin <vigalchin at gmail.com> wrote:
> 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 at gmail.com
IvanMiljenovic.wordpress.com



More information about the Haskell-Cafe mailing list