Revision fd0bc853

b/Makefile.am
447 447

  
448 448
$(HS_ALL_PROGS): %: %.hs $(HS_LIB_SRCS) $(HS_BUILT_SRCS) Makefile
449 449
	BINARY=$(@:htools/%=%); \
450
	if [ "$$BINARY" = "test" ] && [ -z "$(GHC_PKG_QUICKCHECK)" ]; then \
451
	  echo "Error: cannot run unittests without the QuickCheck library (see devnotes.rst)" 1>&2; \
452
	  exit 1; \
453
	fi; \
450 454
	$(GHC) --make \
451 455
	  $(HFLAGS) $(HEXTRA) $(HTOOLS_NOCURL) \
452 456
	  -osuf $$BINARY.o -hisuf $$BINARY.hi \
b/configure.ac
369 369
  AC_MSG_CHECKING([network])
370 370
  GHC_PKG_NETWORK=$($GHC_PKG latest network)
371 371
  AC_MSG_RESULT($GHC_PKG_NETWORK)
372
  AC_MSG_CHECKING([QuickCheck 1.x])
373
  GHC_PKG_QUICKCHECK=$($GHC_PKG --simple-output list 'QuickCheck-1.*')
374
  AC_MSG_RESULT($GHC_PKG_QUICKCHECK)
372 375
  if test -z "$GHC_PKG_PARALLEL" || test -z "$GHC_PKG_JSON" || \
373 376
     test -z "$GHC_PKG_NETWORK"; then
374 377
    if test "$enable_htools" != "check"; then
......
379 382
    # we leave the other modules to be auto-selected
380 383
    HTOOLS_MODULES="-package $GHC_PKG_PARALLEL"
381 384
  fi
385
  if test -z "$GHC_PKG_QUICKCHECK"; then
386
     AC_MSG_WARN(m4_normalize([The QuickCheck 1.x module was not found,
387
                               you won't be able to run Haskell unittests]))
388
  fi
382 389
fi
383 390
AC_SUBST(HTOOLS_MODULES)
391
AC_SUBST(GHC_PKG_QUICKCHECK)
384 392

  
385 393
if test "$enable_htools" != "no"; then
386 394
  if test -z "$GHC" || test -z "$HTOOLS_MODULES"; then
b/doc/devnotes.rst
38 38
  linter (equivalent to pylint for Python)
39 39
- the `QuickCheck <http://hackage.haskell.org/package/QuickCheck>`_
40 40
  library, version 1.x
41
- ``hpc``, which comes with the compiler, so you should already have it
41
- ``hpc``, which comes with the compiler, so you should already have
42
  it
43

  
44
Under Debian, these can be installed (on top of the required ones from
45
the quick install document) via::
46

  
47
  apt-get install libghc6-quickcheck1-dev hscolour hlint
42 48

  
43 49

  
44 50
Configuring for development

Also available in: Unified diff