The patch is attached.
diff -ur ghc-7.8.2/debian/rules ghc-7.8.2-mips/debian/rules --- ghc-7.8.2/debian/rules 2014-05-05 18:51:38.000000000 +0000 +++ ghc-7.8.2-mips/debian/rules 2014-05-28 09:31:47.000000000 +0000 @@ -76,7 +76,7 @@ # We also want to build the threaded profiling-enabled debug runtime, # because it does no harm echo 'GhcRTSWays += $$(if $$(findstring p, $$(GhcLibWays)),thr_debug_p,)' >> mk/build.mk -ifneq (,$(findstring $(DEB_HOST_ARCH),armel armhf)) +ifneq (,$(findstring $(DEB_HOST_ARCH),armel armhf mips mipsel)) # GHCi is too badly broken on ARM; see # http://hackage.haskell.org/trac/ghc/ticket/7794 echo "GhcWithInterpreter = NO" >> mk/build.mk diff -ur ghc-7.8.2/mk/config.mk.in ghc-7.8.2-mips/mk/config.mk.in --- ghc-7.8.2/mk/config.mk.in 2014-04-07 18:26:08.000000000 +0000 +++ ghc-7.8.2-mips/mk/config.mk.in 2014-05-28 16:14:14.000000000 +0000 @@ -99,7 +99,9 @@ x86_64-unknown-mingw32 \ i386-unknown-mingw32 \ sparc-sun-solaris2 \ - sparc-unknown-linux + sparc-unknown-linux \ + mips-unknown-linux \ + mipsel-unknown-linux ifeq "$(SOLARIS_BROKEN_SHLD)" "YES" NoSharedLibsPlatformList += i386-unknown-solaris2

