summaryrefslogtreecommitdiff
path: root/Setup.hs
AgeCommit message (Collapse)Author
2022-08-24workaround for the Nix madnessKrasimir Angelov
2021-03-08Remove notice about RGL not being included anymore from build scriptsJohn J. Camilleri
2020-08-05First attempt at fixing incompabilities with newer cabalAndreas Källberg
2018-12-04Make GF compile with GHC 8.6.2John J. Camilleri
- Re-implement `Distribution.Simple.BuildPaths.exeExtension` - Turn off `MonadFailDesugaring` Tested with GHC: - 7.10.3 - 8.0.2 - 8.2.2 - 8.4.3 - 8.6.2 Yay Stack!
2018-10-15`cabal sdist` doesn't throw an error anymoreJohn J. Camilleri
This was making it impossible to install gf as external source in cabal sandbox
2018-07-26Fixes for buildWebJohn J. Camilleri
2018-07-25[GF Split] Post-split updatesJohn J. Camilleri
2018-07-19WebSetup: fail silently when example grammars don't buildJohn J. Camilleri
Also used installed RGL not built
2018-07-05More cleanup in Setup and WebSetupJohn J. Camilleri
2018-07-05revert to a version compatible with Cabal 1.22Krasimir Angelov
2018-07-05Cleanup in Setup.hs; include `custom-setup:setup-depends` in cabal file.John J. Camilleri
2018-07-05Clean up imports in Setup.hsJohn J. Camilleri
Really just for my own understanding
2018-07-04Remove more remnants from the darcs daysJohn J. Camilleri
2018-07-04Remove code which tries to get version information from darcs folderJohn J. Camilleri
2018-03-29- add Por to complete languages (although it's not quite there yet)odanoburu
- update headers - add Por modules to lib/src/api/
2017-08-24Remove Basque from the list of incomplete languages.Inari Listenmaa
2017-08-24Add Basque to the RGLInari Listenmaa
2017-01-19added Ice and Nno to synopsis and ResourceDemo, and updated documentationaarne
2016-06-02Enable compilation of Ancient Greek in Setup.hshallgren
Also adjust the -path pragmas in a few places in lib/src/ancient_greek
2016-05-22Changes for compatibility with GHC 8.0.1hallgren
2015-10-02Setup.hs: fix off-by-one error the change count in the version infohallgren
The difference between "One change" and "No changes" is very noticeable.
2015-07-22Setup.hs: ignore .* instead of . and .. when compiling/copying all files in ↵hallgren
a directory This avoids problems with .DS_Store files created by the Finder on OS X.
2015-07-20Setup.hs: correctly parse output from 'darcs changes' for newer versions of ↵hallgren
darcs It worked with darcs-2.8 before, now it also works with darcs-2.10.
2015-03-13added Nepali to Setup: it had been missingaarne
2015-03-13added Afrikaans to Setup: it had been missing for a whileaarne
2015-03-13updated Setup and RGL status.html with Mongolian: now it compiles by defaultaarne
2014-12-11Setup.hs: compile Alltenses before Presenthallgren
When mkPresent (or another preprocessor) is used, error messages from GF will show the file name _gf_preproc.tmp instead of the name of the file where the error occurred. By compiling Alltenses first, the real file name will appear in error messages (unless the error only happens then mkPresent is used).
2014-10-15Make `cabal sdist` fail with an informative error message`gregoire.detrez
2014-10-14Setup.hs: comment out sDistHook, which seems to be broken but is not usedhallgren
2014-09-11Setup.hs: don't ask darcs for the version history if _darcs is not presenthallgren
This is to avoid a (harmless) error message from darcs when compiling sources obtained e.g. from github.
2014-08-25Experimental: parallel batch compilation of grammarshallgren
On my laptop these changes speed up the full build of the RGL and example grammars with 'cabal build' from ~95s to ~43s and the zero build from ~18s to ~5s. The main change is the introduction of the module GF.CompileInParallel that replaces GF.Compile and the function GF.Compile.ReadFiles.getAllFiles. At present, it is activated with the new -j flag, and it is only used when combined with --make or --batch. In addition, to get parallel computations, you need to add GHC run-time flags, e.g., +RTS -N -A20M -RTS, to the command line. The Setup.hs script has been modified to pass the appropriate flags to GF for parallel compilation when compiling the RGL and example grammars, but you need a recent version of Cabal for this to work (probably >=1.20). Some additonal refactoring were made during this work. A new monad is used to avoid warnings/error messages from different modules to be intertwined when compiling in parallel, so some functios that were hardiwred to the IO or IOE monads have been lifted to work in arbitrary monads that are instances in the appropriate classes.
2014-08-13Setup.hs: reduce zero build time by a couple of secondshallgren
The RGL is now compile with only three calls to GF (prelude, present, alltenses). This also makes even more parallelism available to GF for speeding up full builds of the RGL.
2014-08-08Setup.hs: don't build example grammars when the rgl-none argument is specifiedhallgren
2014-07-28Setup.hs: comment out debugging codehallgren
2014-07-28Setup.hs: reduce zero build time by ~30% (from 26 to 18 seconds on my laptop)hallgren
This speedup is obtained by instead of generating 211 shell commands to compile the RGL one file at a time, generate 7 shell commands, passing a number of related files to GF in one go. In addition to cutting down the zero build time, this opens up for speeding up full builds of the RGL, by adding more parallelism in GF's grammar compilation machinery. (Note: gf.cabal already takes advantage of GHC's parallel build option to speed up the compilation of GF itself, if GHC>=7.8 is used.)
2014-06-18Compile example grammars during the build phase instead of the install phasehallgren
This allows more errors to be detected by the build bot. TODO: fix the gf --output-dir flag, which does not seem to change where PGF file are put.
2014-06-17Setup.hs: System.Cmd is deprecated, import System.Process insteadhallgren
2014-01-20Optionally include C run-time supporthallgren
If the C run-time library is compiled and installed on your system, you can now do 'cabal configure -fc-runtime' to get the following extras: + The haskell binding to the C run-time library will be included in the PGF library (so you can import it in Haskell applications). Documentation on the new modules will be included when you run 'cabal haddock'. + The new command 'pgf-shell', implemented on top of haskell binding to the C run-time system. + Three new commands in the web API: c-parse, c-linearize and c-translate. Their interfaces are similar to the corresponding commands without the "c-" prefix, but they should be considered preliminary.
2013-12-03testsuite: Use Cabal's new test suite interfacehallgren
* The old way: a user hook in Setup.hs * The new way: specify it in gf.cabal * The test suite is now called gf-tests, and it runs testsuite/run.hs. * You can run it manually with 'runhaskell testsuite/run.hs'. It also runs, together with rgl-tests, when you do 'cabal test' * Currently only 9 of 34 tests pass. Many failures have silly causes: - Error messages that look slightly different - Same output but in a different order - Absolute paths in output
2013-11-25Setup.hs: avoid a problem with Cabal-1.18hallgren
In Cabal-1.18, the build command takes some new arguments. The Setup.hs script should not die if these are present.
2013-10-29Add Estonian to Setup.hsgregoire.detrez
2013-06-10Maltese RG: first proper releasejohn
Of course some bugs remain and more testing is needed, but all functions are complete and Maltese now builds as part of the normal GF install.
2013-05-02Setup.hs: comment out ineffective parallelisationhallgren
2013-04-26Add greek to Setup.hs and the web appshallgren
2013-03-25Setup.hs: paralell RGL module compilation experimenthallgren
For this to have any effect, Setup.hs has to be compiled with -threaded, which cabal-install doesn't do, unfortunately...
2013-03-09Setup.hs: switch to base-4 exceptionsSergei Trofimovich
Fixes build failure on ghc-7.6: $ runhaskell Setup.hs configure Setup.hs:394:14: Not in scope: `E.try' base-4 is available/default since ghc-6.10.
2013-01-30Setup.hs: eliminate "minimal" mode, fix darcs version infohallgren
The reported number of recorded changes since the last tagged version was off by one (because it counted the change that set the tag). Also added a note that -K32M is not needed when using new-comp. But -old-comp is still available as a configuration option, so I'm keeping -K32M for now.
2013-01-29updated the lists of notPresent languagesaarne
2013-01-28added Heb = Hebrew to the incomplete languages that can be compiledaarne
2013-01-28Setup.hs: add some incomplete languages to the list compiled languageshallgren
To be specific: Amh, Ara, Lat, Tur and Mlt.