- 12 Jul, 2005 1 commit
-
-
simonpj authored
Add test for duplicate spliced decls
-
- 05 Jul, 2005 1 commit
-
-
simonmar authored
update output
-
- 19 May, 2005 1 commit
-
-
simonpj authored
Add test for splicing instance, and for pat-match failure in splice code
-
- 06 May, 2005 1 commit
-
-
simonmar authored
Omit the TH tests if the 'ghci' way does not exist.
-
- 31 Jan, 2005 1 commit
-
-
simonpj authored
Add a TH test for tuple names
-
- 23 Dec, 2004 1 commit
-
-
simonpj authored
Add a test involving existentials
-
- 18 Nov, 2004 1 commit
-
-
igloo authored
Implement FunDeps for TH.
-
- 09 Nov, 2004 1 commit
-
-
ross authored
mark groups of tests as GHC-only, as they test GHC-specific features.
-
- 09 Sep, 2004 1 commit
-
-
igloo authored
Testsuite cleaning.
-
- 22 Jun, 2004 1 commit
-
-
simonpj authored
Add a where-clause test for TH
-
- 01 Jun, 2004 1 commit
-
-
igloo authored
Add missing functions to TH export list (mostly spotted by Duncan Coutts). Update TH test output. Add TH support for patterns with type signatures, and test for same (requested by Isaac Jones). Add TH support for pattern guards, and tests for same (requested by Isaac Jones). Add infix patterns to TH datatypes. Added Lift instances for 2- to 7-tuples (requested by Duncan Coutts).
-
- 15 Jan, 2004 1 commit
-
-
igloo authored
Split Template Haskell out to its own package and update docs and tests.
-
- 06 Nov, 2003 1 commit
-
-
simonpj authored
------------------------------------ Major increment for Template Haskell ------------------------------------ 1. New abstract data type "Name" which appears where String used to be. E.g. data Exp = VarE Name | ... 2. New syntax 'x and ''T, for quoting Names. It's rather like [| x |] and [t| T |] respectively, except that a) it's non-monadic: 'x :: Name b) you get a Name not an Exp or Type 3. reify is an ordinary function reify :: Name -> Q Info New data type Info which tells what TH knows about Name 4. Local variables work properly. So this works now (crashed before): f x = $( [| x |] ) 5. THSyntax is split up into three modules: Language.Haskell.TH TH "clients" import this Language.Haskell.TH.THSyntax data type declarations and internal stuff Language.Haskell.TH.THLib Support library code (all re-exported by TH), including smart constructors and pretty printer 6. Error reporting and recovery are in (not yet well tested) report :: Bool {- True <=> fatal -} -> String -> Q () recover :: Q a -> Q a -> Q a 7. Can find current module currentModule :: Q String Much other cleaning up, needless to say.
-
- 30 Oct, 2003 1 commit
-
-
simonpj authored
Two more TH tests, thanks to Sean
-
- 29 Oct, 2003 1 commit
-
-
simonpj authored
Add a TH test
-
- 10 Sep, 2003 1 commit
-
-
simonmar authored
These tests now only need -fth, apart from a couple which use unboxed literals.
-
- 08 Jun, 2003 1 commit
-
-
igloo authored
Introduce a ListP for consistency with ListE. Splicing in something with a list pattern now works too. Added various list tests.
-
- 04 May, 2003 1 commit
-
-
igloo authored
Added tests for unboxed literals.
-
- 03 May, 2003 1 commit
-
-
igloo authored
Update testsuite in line with recent TH changes. Added a couple of cases to TH_repE1 and added a new TH_repE2 that also splices things back in and checks they can be printed correctly.
-
- 10 Dec, 2002 1 commit
-
-
igloo authored
Correctly convert expressions from TH datastructures to the internel Hs* datastructures containing right infix operators left-parenthesised.
-
- 28 Nov, 2002 1 commit
-
-
simonpj authored
Suppress linking messages in TH_spliceDecl1
-
- 22 Nov, 2002 1 commit
-
-
chak authored
wibble
-
- 21 Nov, 2002 1 commit
-
-
chak authored
Renaming function for the reify/splice test needs to be in a separate module
-
- 20 Nov, 2002 1 commit
-
-
chak authored
TH: - We are forcing importing THSyntax.Q at every top splice now; this suffices to get simple splices that do not involve reifyDecl or declaration quasi-quotes to work. NB: This worked already when the construction of the Dec term and the splice were in separated modules, but not when they are in the same (see the regression test "TH_spliceDecl1.hs"). - The tests "TH_spliceDecl2.hs" and "TH_spliceDecl3.hs" use toplevel splices together with quasi-quoted and reifyDecl. These currently still fail, as importing of some of the required type constructors from THSyntax isn't forced.
-
- 09 Nov, 2002 2 commits
- 07 Nov, 2002 1 commit
-
-
chak authored
Started on regression tests for Template Haskell
-