Commit 120f1442 authored by simonmar's avatar simonmar
Browse files

[project @ 2004-11-09 17:21:58 by simonmar]

Add a compatibility library, which will mean that we can make use of
brand new libraries directly in GHC and the tools even when compiling
with older versions of GHC.  The library just consists of stubs that
#include code from fptools/libraries.

This isn't wired up to the build yet.
parent 7331a887
TOP=..
include $(TOP)/mk/boilerplate.mk
SUBDIRS = compat
include $(TOP)/mk/target.mk
{-# OPTIONS -cpp #-}
#include "base/Data/Version.hs"
-- dummy comment
{-# OPTIONS -cpp #-}
#include "Cabal/Distribution/Compat/Error.hs"
-- dummy comment
{-# OPTIONS -cpp #-}
#include "Cabal/Distribution/Compat/ReadP.hs"
-- dummy comment
{-# OPTIONS -cpp #-}
#include "Cabal/Distribution/Extension.hs"
-- dummy comment
{-# OPTIONS -cpp #-}
#include "Cabal/Distribution/InstalledPackageInfo.hs"
-- dummy comment
{-# OPTIONS -cpp #-}
#include "Cabal/Distribution/License.hs"
-- dummy comment
{-# OPTIONS -cpp #-}
#include "Cabal/Distribution/Package.hs"
-- dummy comment
{-# OPTIONS -cpp #-}
#include "Cabal/Distribution/ParseUtils.hs"
-- dummy comment
{-# OPTIONS -cpp #-}
#include "Cabal/Distribution/Setup.hs"
-- dummy comment
{-# OPTIONS -cpp #-}
#include "Cabal/Distribution/Version.hs"
-- dummy comment
#
# This library contains modules only available in versions of GHC
# newer than the current one. They are implemented as stubs that
# #include the actual code from fptools/libraries.
#
# The idea is to ease the task of writing portable code in GHC and its
# tools: the client can link with libghccompat.a and assume that all
# the modules are available. In this way we can add modules to the library
# and start using them right away in GHC, as long as the new library modules
# can be compiled using older versions of GHC.
#
TOP=../..
include $(TOP)/mk/boilerplate.mk
ALL_DIRS = \
Data \
Distribution \
Distribution/Compat
LIBRARY = libghccompat.a
SRC_HC_OPTS += -I$(FPTOOLS_TOP)/libraries -fglasgow-exts
include $(TOP)/mk/target.mk
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment