From neubauer at informatik.uni-freiburg.de Wed Sep 26 02:43:31 2007 From: neubauer at informatik.uni-freiburg.de (Matthias Neubauer) Date: Wed Sep 26 02:42:51 2007 Subject: [Hat] Tracing of standard libraries Message-ID: Hi, I just pulled the latest darcs version of hat, compiled it using ghc-6.6.1 and tried to debug a program. Unfortunately, there seems to be no tracing information for standard libraries by default. ... During compilation using "hmake -hat" hat-trans says ... hat-trans: /usr/local/include/hat-2.05/System/IO/Unsafe.hx: openFile: does not exist (No such file or directory) Is there a way to generate tracing information for (parts of) the standard libraries? (I realizied there is a script called "start" in the hat root directory?) Or, is there another version of hat that works with ghc-6.6.1? -Matthias -- Matthias Neubauer | Universit?t Freiburg, Institut f?r Informatik | tel +49 761 203 8060 Georges-K?hler-Allee 79, 79110 Freiburg i. Br., Germany | fax +49 761 203 8052 From O.Chitil at kent.ac.uk Fri Sep 28 09:17:31 2007 From: O.Chitil at kent.ac.uk (O.Chitil@kent.ac.uk) Date: Fri Sep 28 09:16:52 2007 Subject: [Hat] Tracing of standard libraries In-Reply-To: References: Message-ID: <55683.132.230.204.193.1190985451.squirrel@webmail.cs.kent.ac.uk> Hi Matthias, Hat supports Haskell 98 plus a few additional libraries, but Unsafe is not one of these libraries. A Google summer of code project is still under way to improve this situation, but that will still take time. The quick fix is to copy a library to your own directory and transform it together with your program. However, direct transformation only works on libraries written in Haskell 98 itself and Unsafe will hardly be of that kind. There are ways for wrapping code not written in Haskell 98, but that requires more handwork (you can see how the core parts of the Haskell 98 libraries are dealt with). Btw, both Malcolm and I are currently in Freiburg so we could easily meet. Ciao, Olaf > Hi, > > I just pulled the latest darcs version of hat, compiled it using > ghc-6.6.1 and tried to debug a program. Unfortunately, there seems to > be no tracing information for standard libraries by > default. ... During compilation using "hmake -hat" hat-trans says ... > > hat-trans: /usr/local/include/hat-2.05/System/IO/Unsafe.hx: openFile: > does not exist (No such file or directory) > > Is there a way to generate tracing information for (parts of) the > standard libraries? (I realizied there is a script called "start" in > the hat root directory?) Or, is there another version of hat that > works with ghc-6.6.1? > > -Matthias > > -- > Matthias Neubauer | > Universit?t Freiburg, Institut f?r Informatik | tel +49 761 203 > 8060 > Georges-K?hler-Allee 79, 79110 Freiburg i. Br., Germany | fax +49 761 203 > 8052 > _______________________________________________ > Hat mailing list > Hat@haskell.org > http://www.haskell.org/mailman/listinfo/hat > From guillaumh at gmail.com Fri Sep 28 16:28:14 2007 From: guillaumh at gmail.com (Guillaume Hoffmann) Date: Fri Sep 28 16:27:24 2007 Subject: [Hat] ghc + hat Message-ID: Hi, is there a way to compile a program with GHC and Hat support, directly by calling GHC with the adequate flag(s) (withour using hmake, as the official documentation stipulates) ? guillaume From tatd2 at kent.ac.uk Fri Sep 28 17:06:54 2007 From: tatd2 at kent.ac.uk (Thomas Davie) Date: Fri Sep 28 17:06:11 2007 Subject: [Hat] ghc + hat In-Reply-To: References: Message-ID: <9DA2414C-4E47-4C47-9588-EEAD1A4BA314@kent.ac.uk> Hat works by first performing a program transformation on your code, and the compiling, hmake is used to hide these steps. If you want to just invoke ghc, you will need to first invoke hat-trans to apply the transformation, and then compile the transformed source code. Bob On 28 Sep 2007, at 21:28, Guillaume Hoffmann wrote: > Hi, > > is there a way to compile a program with GHC and Hat support, directly > by calling GHC with the adequate flag(s) (withour using hmake, as the > official documentation stipulates) ? > > guillaume > _______________________________________________ > Hat mailing list > Hat@haskell.org > http://www.haskell.org/mailman/listinfo/hat