Accessing PGF in haskell

69 views
Skip to first unread message

daniel d

unread,
Apr 26, 2021, 11:12:52 PM4/26/21
to Grammatical Framework
Hi!

I am trying to get access to import PGF in a haskell module, I tried running cabal install gf, but had issues with the "network" package. I tried cloning the gf-core repository but I still got the same issues.
I am running windows 10.
Cabal complained about the "network" package: "The package has a './configure' script" and that I need a Unix compatibility toolchain so I used cygwin and got network to install.

But now when I run cabal install gf it complains about dieVerbatim being used in WebSetup, or with new-install it complains about not being able to find the module WebSetup even though it looks like it's right in gf-core.
I haven't edited WebSetup since cloning gf-core.
I don't know why I can't install gf, is there some known issue on windows like this or do you have any other tips?

Cheers, Daniel

Inari Listenmaa

unread,
Apr 26, 2021, 11:20:33 PM4/26/21
to Grammatical Framework
Hi Daniel,

Could you try if this tutorial works for you with Stack? https://github.com/inariksit/gf-embedded-grammars-tutorial See also the related blog post: https://inariksit.github.io/gf/2019/12/12/embedding-grammars.html  

If you succeed in running the tutorial, then the most straightforward thing is just to adapt the stack and cabal files from the tutorial to your project (or replace the cabal file with package.yaml). You're definitely not alone in not managing to install the PGF library globally—I've been using Stack in all my GF projects for some years already. 

Unfortunately I don't have access to Windows myself, but if it doesn't work for you, do write here, maybe someone else who works on Windows can help.

Inari

--

---
You received this message because you are subscribed to the Google Groups "Grammatical Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gf-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gf-dev/b186b518-f570-45ab-8e01-d6bda53b6b40n%40googlegroups.com.

daniel d

unread,
May 3, 2021, 9:01:50 PM5/3/21
to Grammatical Framework
Hello!

Thank you very much Inari, what you suggested worked for me. :)
I forgot to reply last week, oops!

/ Daniel

Inari Listenmaa

unread,
May 3, 2021, 11:44:43 PM5/3/21
to Grammatical Framework
Glad to hear! If you have any other questions, don't hesitate to ask! If you find things that don't work on Windows as they should, you can also open an issue on GF's github https://github.com/GrammaticalFramework/gf-core/issues 

Inari
Reply all
Reply to author
Forward
0 new messages