From dcb03b6589bde9aebc1b8b418112a64a0e9763a8 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 24 Jul 2010 23:18:49 +0000 Subject: Flatten the dynflags before parsing --- src/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Main.hs') diff --git a/src/Main.hs b/src/Main.hs index 59257d9d..aaed1f48 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -386,7 +386,7 @@ getPrologue flags = [] -> return Nothing [filename] -> do str <- readFile filename - case parseParas (tokenise defaultDynFlags str (0,0) {- TODO: real position -}) of + case parseParas (tokenise (flattenLanguageFlags defaultDynFlags) str (0,0) {- TODO: real position -}) of Nothing -> throwE $ "failed to parse haddock prologue from file: " ++ filename Just doc -> return (Just doc) _otherwise -> throwE "multiple -p/--prologue options" -- cgit v1.2.3