hasktags - small patch
Marc Weber
marco-oweber at gmx.de
Wed Feb 21 21:42:05 EST 2007
I didn't knew about :ctags of ghci.
Some time ago I've tweaked cabal to start ghci with package options
given in the .cabal file.
Perhaps it might be useful for someone:
module Main where
import Distribution.Simple
import Distribution.Simple.Configure
import Distribution.Simple.LocalBuildInfo
import System
import System.Process
import System.Exit
import Monad
main= do
args <- getArgs -- check args to launch ghci
when (length args > 0) $ do
when ((args!!0) == "ghci") $ do
lbi <- getPersistBuildConfig
let packageArgs = (concat.concat) [ [" -package ", showPackageId pkg] | pkg <- packageDeps lbi ]
system("ghci " ++ packageArgs)
exitWith ExitSuccess
defaultMain -- fallback to defaultMain
Then you can use ./setup ghci to start ghci
It is incomplete but should work for default packages..
Marc
More information about the Glasgow-haskell-users
mailing list