File: ghci.sh

package info (click to toggle)
lambdabot 5.3.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 336 kB
  • sloc: haskell: 93; sh: 36; makefile: 7
file content (29 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

# Copyright (c) 2006 Don Stewart - http://www.cse.unsw.edu.au/~dons
# GPL version 2 or later (see http://www.gnu.org/copyleft/gpl.html)


if [ ! -e "lambdabot.cabal" ] ; then
  echo "You must run this script from the root directory of lambdabot package."
  echo "Change your current path to the directory containing lambdabot.cabal"
  echo "file and type:"
  echo ""
  echo "./scripts/ghci.sh"
  echo ""
  echo "Make also sure you've done a full compiled build of lambdabot recently."
  exit
fi

echo "Make sure you've done a full compiled build of lambdabot recently."
echo ""

# find possible .o files
if [ -e "dist/build/lambdabot/lambdabot-tmp/" ] ; then
    Odir=dist/build/lambdabot/lambdabot-tmp/
else
    Odir=.
fi

# run ghci with the right command line flags to launch lambdabot
ghci -cpp -Wall -I. -isrc -idist/build/autogen/ -fno-warn-incomplete-patterns -fno-warn-missing-methods -fno-warn-orphans -DGHCi -hidir $Odir -odir $Odir $* -XCPP -XDeriveDataTypeable -XExistentialQuantification -XFlexibleContexts -XFlexibleInstances -XImplicitParams -XMultiParamTypeClasses -XNoMonomorphismRestriction -XPatternGuards -XRank2Types -XScopedTypeVariables -XStandaloneDeriving -XTemplateHaskell -XTypeOperators -XTypeSynonymInstances -XUndecidableInstances -XViewPatterns