diff --git a/README.md b/README.md index 76c3b5b8e..be2015ea5 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,21 @@ or: ``` stack install ``` +Note that if you are unlucky to have Cabal 3.0 or later, then it uses +the so-called Nix style commands. Using those for GF development is +a pain. Every time when you change something in the source code, Cabal +will generate a new folder for GF to look for the GF libraries and +the GF cloud. Either reinstall everything with every change in the +compiler, or be sane and stop using cabal-install. Instead you can do: +``` +runghc Setup.hs configure +runghc Setup.hs build +sudo runghc Setup.hs install +``` +The script will install the GF dependencies globally. The only solution +to the Nix madness that I found is radical: + + "No person, no problem" (Нет человека – нет проблемы). For more information, including links to precompiled binaries, see the [download page](https://www.grammaticalframework.org/download/index.html). diff --git a/index.html b/index.html index f657cc5b5..0b9090ee7 100644 --- a/index.html +++ b/index.html @@ -57,6 +57,7 @@
  • Shell Reference
  • Best Practices [PDF]
  • Scaling Up (Computational Linguistics 2020)
  • +
  • GF blog
  • diff --git a/src/compiler/GF/Main.hs b/src/compiler/GF/Main.hs index 85328712a..83c453782 100644 --- a/src/compiler/GF/Main.hs +++ b/src/compiler/GF/Main.hs @@ -44,7 +44,10 @@ getOptions = do mainOpts :: Options -> [FilePath] -> IO () mainOpts opts files = case flag optMode opts of - ModeVersion -> putStrLn $ "Grammatical Framework (GF) version " ++ showVersion version ++ "\n" ++ buildInfo + ModeVersion -> do datadir <- getDataDir + putStrLn $ "Grammatical Framework (GF) version " ++ showVersion version ++ "\n" ++ + buildInfo ++ "\n" ++ + "Shared folder: " ++ datadir ModeHelp -> putStrLn helpMessage ModeServer port -> mainServerGFI opts port files ModeCompiler -> mainGFC opts files diff --git a/src/runtime/haskell/Setup.hs b/src/runtime/haskell/Setup.hs new file mode 100644 index 000000000..e8ef27dbb --- /dev/null +++ b/src/runtime/haskell/Setup.hs @@ -0,0 +1,3 @@ +import Distribution.Simple + +main = defaultMain diff --git a/src/server/Setup.hs b/src/server/Setup.hs new file mode 100644 index 000000000..7b7b31375 --- /dev/null +++ b/src/server/Setup.hs @@ -0,0 +1,4 @@ +import Distribution.Simple(defaultMain) + +main :: IO () +main = defaultMain