Data.PackedString: Data.Generics is GHC-only
authorRoss Paterson <ross@soi.city.ac.uk>
Tue, 29 May 2007 23:24:27 +0000 (23:24 +0000)
committerRoss Paterson <ross@soi.city.ac.uk>
Tue, 29 May 2007 23:24:27 +0000 (23:24 +0000)
Data/PackedString.hs
configure.ac

index 50d6b00..e008401 100644 (file)
@@ -79,7 +79,9 @@ import Data.Array.Unboxed
 import Data.Array.IO
 import Data.Typeable
 import Data.Char
+#ifdef __GLASGOW_HASKELL__
 import Data.Generics
+#endif
 
 import System.IO
 
@@ -434,6 +436,7 @@ joinPS sep  = concatPS . intersperse sep
 
 #endif
 
+#ifdef __GLASGOW_HASKELL__
 instance Data PackedString where
      gunfold k z c = error "gunfold"
      toConstr (PS _) = con_PS
@@ -441,3 +444,4 @@ instance Data PackedString where
 
 con_PS = mkConstr ty_PackedString "PS" [] Prefix
 ty_PackedString   = mkDataType "Data.PackedString.PackedString" [con_PS]
+#endif
index 7d37993..50aa887 100644 (file)
@@ -20,7 +20,7 @@ dnl ** check for full ANSI header (.h) files
 AC_HEADER_STDC
 
 # check for specific header (.h) files that we are interested in
-AC_CHECK_HEADERS([ctype.h dirent.h errno.h fcntl.h limits.h signal.h sys/resource.h sys/select.h sys/syscall.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/utsname.h sys/wait.h termios.h time.h utime.h windows.h winsock.h])
+AC_CHECK_HEADERS([ctype.h dirent.h errno.h fcntl.h inttypes.h limits.h signal.h sys/resource.h sys/select.h sys/stat.h sys/syscall.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/types.h sys/utsname.h sys/wait.h termios.h time.h unistd.h utime.h windows.h winsock.h])
 
 # Enable large file support. Do this before testing the types ino_t, off_t, and
 # rlim_t, because it will affect the result of that test.