[03:05:57] *** Quits: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) (Ping timeout: 240 seconds) [08:41:53] *** Joins: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) [09:59:25] can you be a bit more specific? do you want to have a preprocessor in your cabal that generates the hs files from the gf files, or just compile the Haskell version manually? [10:01:31] if you want that, you need to add the GF files in extra-source-files in your cabal file, and then add some magic in the Setup.hs [10:03:19] if you want to do less cabal magic, then you can put the pgf in some location and hardcode the path in the haskell file [10:03:22] like [10:03:49] gf <- readPGF "../grammars/MyGrammar.pgf" [10:04:00] I'm not 100% sure if cabal is happy with relative paths or not [10:04:22] but I have been successful with that style of paths in my stack projects [10:05:38] if the issue is that the MyGrammar.hs file is not found, then you should double check in which directory you put it, and make sure that you rename it if necessary [10:06:07] e.g. if your directory structure is src/MyStuff/NLP/MyGrammar.hs, then the module name has to be MyStuff.NLP.MyGrammar [10:06:40] whereas the GF compiler will just generate a hs file that starts "module MyGrammar where …" [10:20:54] (I see that you said all your files are in the root directory, I'm just listing problems I have personally had before :-P) [10:21:09] but anyway, just give me a link to your repo so it's easier to diagnose [10:57:17] *** Quits: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) (Ping timeout: 240 seconds) [11:10:21] *** Joins: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) [11:12:51] https://github.com/wmacmil/CNL-for-Autonomous-Vehicle/tree/master/gf-command-lang [11:25:26] *** Joins: Lycurgus (~juan@98.4.112.204) [11:28:52] i was able to fix my problem by just moving everyhing too the app/ directory [11:29:28] but am still curious if theres a general best practices type thing for GF /\ Cabal [12:03:47] *** Quits: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) (Remote host closed the connection) [12:24:24] no official written documentation that I know of [12:24:38] do you know how the Paths_* module and dataDir work in cabal [12:25:09] I know that you can do something in the setup file to get source GF grammars compiled, and then they get put into that dataDir place [12:25:30] if you're curious, I can try to look it up, or ask anka instead [13:33:22] *** Quits: Lycurgus (~juan@98.4.112.204) (Quit: Exeunt) [16:40:59] i vaguely remember that i tried myself to compile gf grammars using cabal. but i cannot remember if i succeeded, probably not [16:46:00] *** Joins: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) [16:46:51] so is there any way to generically run parseAll using PGF without a priori providing the category name;w [16:48:55] i'm also having a lot of troubles with PGF not being able to infer without explicit type annotations, is this a common problem? [16:49:16] am trying to think of an easy way to present these types of questions [17:16:15] i guess im asking how to do [17:16:16] p -cat=UndetObj "big cafe" [17:16:16] ModObj Big Cafe [17:16:21] in PGF [17:17:04] in the simplest way possible because the only accessible way to get a category from the API is startCat [17:19:21] and functionType is only meant for CId's which denote function names, not categories [17:34:49] it seems you can get all categories from a grammar as well, not sure if that helps [17:35:24] a bit weird that there doesn't seem to be something like readCat or mkCat at the moment [18:30:10] *** Joins: Lycurgus (~juan@98.4.112.204) [18:39:41] it helps - am not sure if theres just some canonical way of doing this [18:40:38] also, is there a way of sequencing sentences using some kind of list constructor? [18:42:09] or maybe you just define that ad-hoc in your linearization. like you don't need conjuncts [19:03:50] *** Quits: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) (Remote host closed the connection) [19:04:44] *** Joins: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) [19:36:11] *** Quits: Lycurgus (~juan@98.4.112.204) (Quit: Exeunt) [20:13:15] *** Quits: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) (Remote host closed the connection) [20:13:38] *** Joins: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) [20:18:15] *** Quits: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) (Remote host closed the connection) [20:18:38] *** Joins: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) [20:30:47] *** Quits: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) (Remote host closed the connection) [20:33:09] *** Joins: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) [20:33:17] *** Quits: wmacmil (~wmacmil@83-233-165-97.cust.bredband2.com) (Remote host closed the connection) [21:25:25] *** Joins: Lycurgus (~juan@98.4.112.204) [21:58:10] *** Quits: Lycurgus (~juan@98.4.112.204) (Quit: Exeunt)