From e067f3ea2c9d5667b66efad7227bf4dc4e92571c Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 27 Mar 2001 10:33:24 +0000 Subject: [PATCH] [project @ 2001-03-27 10:33:24 by simonmar] complain if the -B flag is missing. --- ghc/compiler/main/Main.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc/compiler/main/Main.hs b/ghc/compiler/main/Main.hs index 0475096..88ddba7 100644 --- a/ghc/compiler/main/Main.hs +++ b/ghc/compiler/main/Main.hs @@ -1,6 +1,6 @@ {-# OPTIONS -fno-warn-incomplete-patterns #-} ----------------------------------------------------------------------------- --- $Id: Main.hs,v 1.60 2001/03/23 12:11:26 simonmar Exp $ +-- $Id: Main.hs,v 1.61 2001/03/27 10:33:24 simonmar Exp $ -- -- GHC Driver program -- @@ -307,7 +307,7 @@ setTopDir :: [String] -> IO [String] setTopDir args = do let (minusbs, others) = partition (prefixMatch "-B") args (case minusbs of - [] -> writeIORef v_TopDir clibdir + [] -> throwDyn (OtherError ("missing -B option")) some -> writeIORef v_TopDir (drop 2 (last some))) return others -- 1.7.10.4