From f5461eb3d4eb2605b546a4ed202c12bcdaa1f4e4 Mon Sep 17 00:00:00 2001 From: "john.j.camilleri" Date: Mon, 16 Sep 2013 07:17:27 +0000 Subject: Remove contribs and examples Everything has now been moved to a separate repository at https://github.com/GrammaticalFramework/gf-contrib The contents of the examples folder are build during SetupWeb --- examples/gadt-transfer/VeryFoods.hs | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 examples/gadt-transfer/VeryFoods.hs (limited to 'examples/gadt-transfer/VeryFoods.hs') diff --git a/examples/gadt-transfer/VeryFoods.hs b/examples/gadt-transfer/VeryFoods.hs deleted file mode 100644 index ad6b6dc7f..000000000 --- a/examples/gadt-transfer/VeryFoods.hs +++ /dev/null @@ -1,23 +0,0 @@ -{-# OPTIONS_GHC -fglasgow-exts #-} -module Main where - -import PGF -import Foods - --- example of using GADT: turn every occurrence of "boring" to "very boring" - -main = do - pgf <- readPGF "Foods.pgf" - interact (doVery pgf) - -doVery pgf s = case parseAllLang pgf (startCat pgf) s of - (l,t:_):_ -> unlines $ return $ linearize pgf l $ gf $ veryC $ fg t - -veryC :: GComment -> GComment -veryC = very - -very :: forall a. Foods.Tree a -> Foods.Tree a -very t = case t of - GBoring -> GVery GBoring - _ -> composOp very t - -- cgit v1.2.3