Commit 3381ed95 authored by Clint Adams's avatar Clint Adams

mueval: patch for newer hint

parent 014bb876
haskell-mueval (0.9.1.1.2-6) UNRELEASED; urgency=medium
haskell-mueval (0.9.1.1.2-6) unstable; urgency=medium
[ Dmitry Bogatov ]
* Use secure (https) uri in Vcs-Git field in 'debian/control'
* Bump standards version to 3.9.8 (no changes needed)
-- Dmitry Bogatov <KAction@gnu.org> Tue, 10 May 2016 09:35:50 +0300
[ Clint Adams ]
* Patch for newer hint.
-- Clint Adams <clint@debian.org> Tue, 07 Jun 2016 09:34:52 -0400
haskell-mueval (0.9.1.1.2-5) unstable; urgency=medium
......
......@@ -14,7 +14,7 @@ Build-Depends: debhelper (>= 9),
libghc-quickcheck2-prof,
libghc-extensible-exceptions-dev,
libghc-extensible-exceptions-prof,
libghc-hint-dev (>= 0.3.1),
libghc-hint-dev (>= 0.5.0),
libghc-hint-prof,
libghc-mtl-dev (>> 2),
libghc-mtl-prof,
......
--- a/Mueval/Interpreter.hs
+++ b/Mueval/Interpreter.hs
@@ -18,11 +18,12 @@
import Data.List
import Language.Haskell.Interpreter (eval, set, reset, setImportsQ, loadModules, liftIO,
- installedModulesInScope, languageExtensions,
- typeOf, setTopLevelModules, runInterpreter, glasgowExtensions,
+ installedModulesInScope, languageExtensions, availableExtensions,
+ typeOf, setTopLevelModules, runInterpreter,
OptionVal(..), Interpreter,
InterpreterError(..),GhcError(..),
Extension(UnknownExtension))
+import Language.Haskell.Interpreter.Extension (asExtension)
import Language.Haskell.Interpreter.Unsafe (unsafeSetGhcOption)
import Mueval.ArgsParse (Options(..))
@@ -177,3 +178,39 @@
\(E.SomeException e) -> return . Exception . toStream . show $ e
where uncons [] = End
uncons (x:xs) = x `seq` Cons x (toStream xs)
+
+glasgowExtensions :: [Extension]
+glasgowExtensions = intersect availableExtensions exts612
+ where exts612 = map asExtension ["PrintExplicitForalls",
+ "ForeignFunctionInterface",
+ "UnliftedFFITypes",
+ "GADTs",
+ "ImplicitParams",
+ "ScopedTypeVariables",
+ "UnboxedTuples",
+ "TypeSynonymInstances",
+ "StandaloneDeriving",
+ "DeriveDataTypeable",
+ "FlexibleContexts",
+ "FlexibleInstances",
+ "ConstrainedClassMethods",
+ "MultiParamTypeClasses",
+ "FunctionalDependencies",
+ "MagicHash",
+ "PolymorphicComponents",
+ "ExistentialQuantification",
+ "UnicodeSyntax",
+ "PostfixOperators",
+ "PatternGuards",
+ "LiberalTypeSynonyms",
+ "ExplicitForAll",
+ "RankNTypes",
+ "ImpredicativeTypes",
+ "TypeOperators",
+ "RecursiveDo",
+ "DoRec",
+ "ParallelListComp",
+ "EmptyDataDecls",
+ "KindSignatures",
+ "GeneralizedNewtypeDeriving",
+ "TypeFamilies" ]
--- a/mueval.cabal
+++ b/mueval.cabal
@@ -32,7 +32,7 @@
exposed-modules: Mueval.Parallel, Mueval.Context, Mueval.Interpreter,
Mueval.ArgsParse, Mueval.Resources
build-depends: base>=4 && < 5, containers, directory, mtl>2, filepath, unix, process,
- hint>=0.3.1, show>=0.3, Cabal, extensible-exceptions, simple-reflect,
+ hint>=0.5.0, show>=0.3, Cabal, extensible-exceptions, simple-reflect,
QuickCheck
ghc-options: -Wall -static
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment