From 16e84c1501e3d1fe7befbf15d058572a25fafaeb Mon Sep 17 00:00:00 2001 From: Connor Prussin Date: Mon, 17 Jul 2017 19:10:01 -0700 Subject: [PATCH] Turn on strict compilation (#35) --- .travis.yml | 2 +- Makefile | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9a39064..08636a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ install: - wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz - tar -xvf $HOME/purescript.tar.gz -C $HOME/ - chmod a+x $HOME/purescript - - npm install -g bower pulp + - npm install -g bower pulp purescript-psa script: - make test after_success: diff --git a/Makefile b/Makefile index 0741d7c..6471748 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,8 @@ $(COMPONENTS): $(BOWERJSON) $(BUILD): $(COMPONENTS) $(SOURCES) $(PULP) build \ --src-path $(SRCPATH) \ - --build-path $(BUILD) + --build-path $(BUILD) \ + -- --stash --censor-lib --strict touch $(BUILD) build: $(BUILD) @@ -62,7 +63,8 @@ $(EXAMPLE_INDEX): $(OUTPUT_EXAMPLE) $(BUILD) $(EXAMPLEPATH)/Main.purs --include $(SRCPATH) \ --build-path $(BUILD) \ --main $(EXAMPLE) \ - --to $(EXAMPLE_INDEX) + --to $(EXAMPLE_INDEX) \ + -- --stash --censor-lib --strict # Run the example specified by the environment variable EXAMPLE ifeq ($(EXAMPLE),) @@ -83,14 +85,16 @@ test: $(BUILD) $(TESTSOURCES) $(EXAMPLESOURCES) --test-path $(TESTPATH) \ --include $(EXAMPLESPATH) \ --build-path $(BUILD) \ - --main $(TESTMAIN) + --main $(TESTMAIN) \ + -- --stash --censor-lib --strict # Launch a repl with all modules loaded repl: $(COMPONENTS) $(SOURCES) $(TESTSOURCES) $(EXAMPLESOURCES) $(PULP) repl \ --include $(EXAMPLESPATH) \ --src-path $(SRCPATH) \ - --test-path $(TESTPATH) + --test-path $(TESTPATH) \ + -- --stash --censor-lib --strict # Remove all make output from the source tree clean: @@ -112,7 +116,8 @@ help: # Build the documentation $(OUTPUT_DOCS): $(COMPONENTS) $(SOURCES) $(PULP) docs \ - --src-path $(SRCPATH) + --src-path $(SRCPATH) \ + -- --stash --censor-lib --strict rm -rf $(OUTPUT_DOCS) mv generated-docs $(OUTPUT_DOCS) docs: $(OUTPUT_DOCS)