Re: Help needed with a compiling error

Malcolm Wallace <[email protected]> Tue, 22 Apr 2008 15:22:10 +0100
Newsgroups gmane.comp.lang.haskell.nhc.user
Organization Dept of Computer Science, University of York
Message-ID <[email protected]>
HP Wei <[email protected]> wrote:

> Fail: superclassesI InfoUsedClass 52 [(Type class, Text.Printf.PrintfArg,
>                                       "ftnirP.txeT", 52:11-52:19)] ...

nhc98 is confused about whether the classes defined in Test.Printf are
necessary or not.  There is a workaround: explicit imports.  Replace

    import Text.Printf

with

    import Text.Printf (IsChar(),PrintfArg(),printf)

and everything will work OK.

Regards,
    Malcolm