IntMap lookup now returns monad instead of Maybe.
[packages/old-time.git] / Makefile.nhc98
index d9575d3..63edf52 100644 (file)
 THISPKG        = base
-SEARCH = -I$(TOPDIR)/targets/$(MACHINE)
-
-DIRS   = Data Control Control/Monad Debug System System/IO System/Console \
-         Foreign Foreign/C Foreign/Marshal Text Text/ParserCombinators \
-         Text/ParserCombinators/Parsec Text/PrettyPrint Text/Html
+SEARCH = -I$(TOPDIR)/targets/$(MACHINE) -Iinclude
+EXTRA_H_FLAGS   = -H4M -K2M
+EXTRA_HBC_FLAGS = -H16M -A1M
 
 SRCS   = \
        Data/Bits.hs Data/Bool.hs Data/Char.hs Data/Complex.hs \
        Data/Either.hs Data/FiniteMap.hs Data/IORef.hs Data/Int.hs \
        Data/Ix.hs Data/List.hs Data/Maybe.hs Data/PackedString.hs \
        Data/Ratio.hs Data/Set.hs Data/Tuple.hs Data/Word.hs Data/Array.hs \
-       Data/Dynamic.hs \
-       Control/Monad.hs Control/Monad/Fix.hs Control/Monad/Trans.hs \
+       Data/HashTable.hs Data/Typeable.hs Data/Dynamic.hs \
+       Data/Monoid.hs Data/Queue.hs Data/Tree.hs \
+       Data/Map.hs Data/IntMap.hs Data/IntSet.hs Data/FunctorM.hs \
+       Data/Eq.hs Data/Ord.hs \
+       Control/Monad.hs Control/Monad/Fix.hs \
        Control/Arrow.hs Debug/Trace.hs \
+       NHC/SizedTypes.hs \
        System/IO.hs System/IO/Error.hs System/IO/Unsafe.hs \
        System/Environment.hs System/Exit.hs System/Locale.hs \
        System/Directory.hs System/Mem.hs System/Cmd.hs System/Info.hs \
-       System/Console/GetOpt.hs \
+       System/Console/GetOpt.hs System/Random.hs \
+       System/CPUTime.hsc System/Time.hsc \
+       System/Directory/Internals.hs \
        Foreign/Ptr.hs Foreign/StablePtr.hs Foreign/Storable.hs \
-       Foreign/ForeignPtr.hs Foreign/C/Types.hs Foreign/C/TypesISO.hs \
+       Foreign/ForeignPtr.hs Foreign/C/Types.hs \
        Foreign/Marshal/Alloc.hs Foreign/Marshal/Array.hs \
        Foreign/Marshal/Utils.hs Foreign/Marshal/Error.hs \
-       Foreign/C/String.hs Foreign/C/Error.hs Foreign/C.hs \
-       Text/ParserCombinators/Parsec/Char.hs \
-       Text/ParserCombinators/Parsec/Combinator.hs \
-       Text/ParserCombinators/Parsec/Error.hs \
-       Text/ParserCombinators/Parsec/Expr.hs \
-       Text/ParserCombinators/Parsec/Perm.hs \
-       Text/ParserCombinators/Parsec/Pos.hs \
-       Text/ParserCombinators/Parsec/Prim.hs \
-       Text/ParserCombinators/Parsec.hs \
+       Foreign/Marshal/Pool.hs Foreign/Marshal.hs \
+       Foreign/C/String.hs Foreign/C/Error.hs Foreign/C.hs Foreign.hs \
        Text/PrettyPrint/HughesPJ.hs Text/PrettyPrint.hs \
-       Text/Html/BlockTable.hs Text/Html.hs
+       Text/Html/BlockTable.hs Text/Html.hs Text/Printf.hs \
+       Text/Read.hs Text/Show.hs Text/Show/Functions.hs \
+       Text/ParserCombinators/ReadP.hs Data/Version.hs \
+       Text/Regex/Posix.hsc Text/Regex.hs \
+       WCsubst.c
 
 
-#      Data/Dynamic.hs Data/Generics.hs Data/STRef.hs Data/Unique.hs
-#      Control/Monad/Identity.hs
-#      Debug/QuickCheck.hs
-#      System/CPUTime.hsc System/Random.hs System/Time.hsc
+#      Text/ParserCombinators/ReadPrec.hs
+#      [Data/Dynamic.hs] Data/Generics.hs Data/STRef.hs Data/Unique.hs
 #      System/Mem.hs System/Mem/StableName.hs System/Mem/Weak.hs
 #      System/Posix/Types.hs System/Posix/Signals.hsc
-#      Text/ParserCombinators/Parsec/Token.hs \
-#      Text/ParserCombinators/Parsec/Language.hs \
-#      Text/Read/* Text/Read.hs Text/Show/* Text/Show.hs
-#      Text/Regex/* Text/Regex.hs
+#      Text/Read/Lex.hs
+#      System/FilePath.hs
 
 
 # Here are the main rules.
 include ../Makefile.common
 
+# some extra rules
+extra:
+       if [ -f Prelude.hs ]; then mv Prelude.hs Prelude.hs.unused; fi
+       if [ -f Numeric.hs ]; then mv Numeric.hs Numeric.hs.unused; fi
+extracfiles:
+       if [ -f Prelude.hs ]; then mv Prelude.hs Prelude.hs.unused; fi
+       if [ -f Numeric.hs ]; then mv Numeric.hs Numeric.hs.unused; fi
 
-# Here are the dependencies.
-$(OBJDIR)/Data/FiniteMap.$O: $(OBJDIR)/Data/Maybe.$O
-$(OBJDIR)/Data/Set.$O: $(OBJDIR)/Data/Maybe.$O $(OBJDIR)/Data/FiniteMap.$O
-$(OBJDIR)/Data/Array.$O: $(OBJDIR)/Data/Ix.$O
-$(OBJDIR)/Data/Dynamic.$O: $(OBJDIR)/Foreign/Ptr.$O \
-       $(OBJDIR)/Foreign/StablePtr.$O
-$(OBJDIR)/System/IO.$O: $(OBJDIR)/System/IO/Error.$O
-$(OBJDIR)/System/Random.$O: $(OBJDIR)/Data/Char.$O $(OBJDIR)/Data/IORef.$O \
-       $(OBJDIR)/System/IO/Unsafe.$O
-$(OBJDIR)/Debug/Trace.$O: $(OBJDIR)/System/IO.$O $(OBJDIR)/System/IO/Unsafe.$O
-$(OBJDIR)/Control/Monad/Fix.$O: $(OBJDIR)/System/IO.$O
-$(OBJDIR)/Control/Monad/Identity.$O: $(OBJDIR)/Control/Monad.$O \
-       $(OBJDIR)/Control/Monad/Fix.$O
-$(OBJDIR)/Foreign/Marshal/Alloc.$O:  $(OBJDIR)/Data/Maybe.$O \
-       $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
-       $(OBJDIR)/Foreign/C/Types.$O
-$(OBJDIR)/Foreign/Marshal/Array.$O:  $(OBJDIR)/Control/Monad.$O \
-       $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
-       $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/Marshal/Utils.$O
-$(OBJDIR)/Foreign/Marshal/Utils.$O:  $(OBJDIR)/Data/Maybe.$O \
-       $(OBJDIR)/Foreign/Ptr.$O $(OBJDIR)/Foreign/Storable.$O \
-       $(OBJDIR)/Foreign/Marshal/Alloc.$O $(OBJDIR)/Foreign/C/Types.$O
-$(OBJDIR)/Foreign/Marshal/Error.$O: $(OBJDIR)/Foreign/Ptr.$O
-$(OBJDIR)/Foreign/C/String.$O: $(OBJDIR)/Data/Word.$O $(OBJDIR)/Foreign/Ptr.$O \
-       $(OBJDIR)/Foreign/Marshal/Array.$O $(OBJDIR)/Foreign/C/Types.$O 
-$(OBJDIR)/Text/ParserCombinators/Parsec/Char.$O: \
-       $(OBJDIR)/Text/ParserCombinators/Parsec/Pos.$O \
-       $(OBJDIR)/Text/ParserCombinators/Parsec/Prim.$O
-$(OBJDIR)/Text/ParserCombinators/Parsec/Combinator.$O: \
-       $(OBJDIR)/Text/ParserCombinators/Parsec/Prim.$O
-$(OBJDIR)/Text/ParserCombinators/Parsec/Error.$O: \
-       $(OBJDIR)/Text/ParserCombinators/Parsec/Pos.$O
-$(OBJDIR)/Text/ParserCombinators/Parsec/Expr.$O: \
-       $(OBJDIR)/Text/ParserCombinators/Parsec/Prim.$O \
-       $(OBJDIR)/Text/ParserCombinators/Parsec/Combinator.$O
-$(OBJDIR)/Text/ParserCombinators/Parsec/Language.$O: \
-       $(OBJDIR)/Text/ParserCombinators/Parsec.$O \
-       $(OBJDIR)/Text/ParserCombinators/Parsec/Token.$O
-$(OBJDIR)/Text/ParserCombinators/Parsec/Perm.$O: \
-       $(OBJDIR)/Text/ParserCombinators/Parsec.$O
-$(OBJDIR)/Text/ParserCombinators/Parsec/Prim.$O: \
-       $(OBJDIR)/Text/ParserCombinators/Parsec/Pos.$O \
-       $(OBJDIR)/Text/ParserCombinators/Parsec/Error.$O
-$(OBJDIR)/Text/ParserCombinators/Parsec/Token.$O: \
-       $(OBJDIR)/Text/ParserCombinators/Parsec.$O
+# Here are any extra dependencies.
 
 # C-files dependencies.
-Data/FiniteMap.$C: Data/Maybe.$C
-Data/Set.$C:       Data/Maybe.$C Data/FiniteMap.$C
-Data/Array.$C:     Data/Ix.$C
-Data/Dynamic.$C:   Foreign/Ptr.$C
-System/IO.$C:      System/IO/Error.$C
-System/Random.$C:  Data/Char.$C Data/IORef.$C System/IO/Unsafe.$C
-Debug/Trace.$C:    System/IO.$C System/IO/Unsafe.$C
-Control/Monad/Fix.$C:      System/IO.$C
-Control/Monad/Identity.$C: Control/Monad.$C Control/Monad/Fix.$C
-Control/Monad/Trans.$C:    System/IO.$C
-Foreign/Marshal/Alloc.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
-       Foreign/C/Types.$C
-Foreign/Marshal/Array.$C:  Control/Monad.$C Foreign/Ptr.$C Foreign/Storable.$C \
-       Foreign/Marshal/Alloc.$C Foreign/Marshal/Utils.$C
-Foreign/Marshal/Utils.$C:  Data/Maybe.$C Foreign/Ptr.$C Foreign/Storable.$C \
-       Foreign/C/Types.$C Foreign/Marshal/Alloc.$C
-Foreign/Marshal/Error.$C:  Foreign/Ptr.$C
-Foreign/C/String.$C:       Data/Word.$C Foreign/Ptr.$C Foreign/C/Types.$C \
-       Foreign/Marshal/Array.$C
+