IntMap lookup now returns monad instead of Maybe.
[packages/old-time.git] / Makefile.nhc98
index 48772da..63edf52 100644 (file)
@@ -1,29 +1,60 @@
 THISPKG        = base
-SEARCH =
-
-DIRS   = Data Control Debug System System/IO
+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/Set.hs Data/Tuple.hs Data/Word.hs \
-       Control/Monad.hs \
-       System/IO.hs System/IO/Error.hs System/IO/Unsafe.hs
-
-#      Debug/Trace.hs Debug/QuickCheck.hs
+       Data/Ratio.hs Data/Set.hs Data/Tuple.hs Data/Word.hs Data/Array.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/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/Marshal/Alloc.hs Foreign/Marshal/Array.hs \
+       Foreign/Marshal/Utils.hs Foreign/Marshal/Error.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/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
+
+
+#      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/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)/System/IO.$O: $(OBJDIR)/System/IO/Error.$O
+# Here are any extra dependencies.
 
 # C-files dependencies.
-Data/FiniteMap.$C: Data/Maybe.$C
-Data/Set.$C:       Data/Maybe.$C Data/FiniteMap.$C
-System/IO.$C:      System/IO/Error.$C
+