remove -fglasgow-exts flag from System.Eval.Utils.getPath

This commit is contained in:
Jeremy Shaw 2013-10-03 18:38:41 +00:00
parent 92e57e95ff
commit 08f4a08a08

View File

@ -1,27 +1,27 @@
-- --
-- Copyright (C) 2004 Don Stewart - http://www.cse.unsw.edu.au/~dons -- Copyright (C) 2004 Don Stewart - http://www.cse.unsw.edu.au/~dons
-- --
-- This library is free software; you can redistribute it and/or -- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public -- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either -- License as published by the Free Software Foundation; either
-- version 2.1 of the License, or (at your option) any later version. -- version 2.1 of the License, or (at your option) any later version.
-- --
-- This library is distributed in the hope that it will be useful, -- This library is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- Lesser General Public License for more details. -- Lesser General Public License for more details.
-- --
-- You should have received a copy of the GNU Lesser General Public -- You should have received a copy of the GNU Lesser General Public
-- License along with this library; if not, write to the Free Software -- License along with this library; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-- USA -- USA
-- --
-- --
-- compile and run haskell strings at runtime. -- compile and run haskell strings at runtime.
-- --
module System.Eval.Utils ( module System.Eval.Utils (
Import, Import,
symbol, symbol,
@ -44,10 +44,10 @@ import System.Directory
import Data.Char import Data.Char
-- --
-- we export these so that eval() users have a nice time -- we export these so that eval() users have a nice time
-- --
import Data.Maybe import Data.Maybe
import Control.Monad import Control.Monad
-- --
@ -71,15 +71,15 @@ escape s = concatMap (\c -> showLitChar c $ "") s
-- --
getPaths :: IO ([String],[String]) getPaths :: IO ([String],[String])
getPaths = do getPaths = do
let make_line = ["-O0","-fglasgow-exts","-package","plugins"] let make_line = ["-O0","-package","plugins"]
return (make_line,[]) return (make_line,[])
-- --------------------------------------------------------------------- -- ---------------------------------------------------------------------
-- create the tmp file, and write source into it, using wrapper to -- create the tmp file, and write source into it, using wrapper to
-- create extra .hs src. -- create extra .hs src.
-- --
mkUniqueWith :: (String -> String -> [Import] -> String) mkUniqueWith :: (String -> String -> [Import] -> String)
-> String -> String
-> [Import] -> IO FilePath -> [Import] -> IO FilePath
mkUniqueWith wrapper src mods = do mkUniqueWith wrapper src mods = do