packages feed

cabal-ghci 0.2.0 → 0.2.1

raw patch · 2 files changed

+11/−3 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CabalGHCI.hs view
@@ -5,9 +5,17 @@ import System.Environment import System.Process +opt0 opt args = f [] args+     where f r (x:xs)+             | x == ("--cabal-ghci-" ++ opt) = (reverse r ++ xs, True)+             | otherwise = f (x:r) xs+           f _ _ = (args, False)+ main = do   args ← getArgs-  withOpts args putStrLn $ -        \opts → do+  let (args', pretend) = opt0 "print-ghci-args" args+  withOpts args' putStrLn $+    if pretend then mapM_ putStrLn+    else \opts → do           putStrLn $ "Executing ghci with the following options: " ++ unwords opts           rawSystem "ghci" opts >> return ()
cabal-ghci.cabal view
@@ -1,5 +1,5 @@ Name:                cabal-ghci-Version:             0.2.0+Version:             0.2.1 Synopsis:            Set up ghci with options taken from a .cabal file Description: The executable cabal-ghci runs ghci with the paths and extensions needed by a cabal project. The cabalSet function can be added to your .ghci to provide the same functionality at runtime, giving you more control over the options that are set. Homepage:            http://code.atnnn.com/projects/cabal-ghci/wiki