From a97defacc74e0b34c7f12f8a436da39e5124ac10 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 15 Jul 2011 11:49:05 -0400 Subject: [PATCH] Remove a useless import. Output *.hi and *.o files to /tmp. A tiny bit of makefile cleanup. --- makefile | 8 +++++--- src/Tests/Grid.hs | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index 36f07cd..a15145d 100644 --- a/makefile +++ b/makefile @@ -6,19 +6,21 @@ GHC_WARNINGS += -fwarn-orphans GHC_WARNINGS += -fwarn-type-defaults BIN := spline3 +GHC_OPTS := $(GHC_WARNINGS) -odir /tmp -hidir /tmp --make -o bin/${BIN} + .PHONY : test publish_doc doc src_html hlint $(BIN): src/*.hs - ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs + ghc -O2 $(GHC_OPTS) src/*.hs all: $(BIN) test_src test_src: src/Tests/*.hs - ghc -O2 $(GHC_WARNINGS) --make -o bin/${BIN} src/*.hs src/Tests/*.hs + ghc -O2 $(GHC_OPTS) src/*.hs src/Tests/*.hs profile: src/*.hs - ghc -O2 $(GHC_WARNINGS) -prof -auto-all --make -o bin/$(BIN) src/*.hs + ghc -O2 $(GHC_OPTS) -prof -auto-all src/*.hs clean: rm -f bin/$(BIN) diff --git a/src/Tests/Grid.hs b/src/Tests/Grid.hs index 31dfdff..15bbc98 100644 --- a/src/Tests/Grid.hs +++ b/src/Tests/Grid.hs @@ -2,7 +2,6 @@ module Tests.Grid where import Data.Maybe (fromJust) -import Debug.Trace (trace) import Test.HUnit import Test.QuickCheck -- 2.43.2