on master help sign in
add support for GHC 8.10.2
bd179c6AgentM
project-m36.cabal+6−6
@@ -1,5 +1,5 @@
1Name: project-m36
1Name: project-m36
2−Version: 0.8
2+Version: 0.8.1
3License: PublicDomain
3License: PublicDomain
4Build-Type: Simple
4Build-Type: Simple
5Homepage: https://github.com/agentm/project-m36
5Homepage: https://github.com/agentm/project-m36
@@ -34,9 +34,9 @@ Flag haskell-scripting
34 Default: True
34 Default: True
35
35
36Library
36Library
37− Build-Depends: base>=4.8 && < 4.14, ghc-paths, mtl, containers, unordered-containers, hashable, haskeline, directory, MonadRandom, random-shuffle, uuid >= 1.3.12, cassava >= 0.4.5.1 && < 0.6, text, bytestring, deepseq, deepseq-generics, vector, parallel, monad-parallel, exceptions, transformers, gnuplot, binary, filepath, zlib, directory, vector-binary-instances, temporary, stm, time, hashable-time, old-locale, rset, attoparsec, either, base64-bytestring, data-interval, extended-reals, network-transport, aeson >= 1.1, path-pieces, conduit, resourcet, http-api-data, semigroups, QuickCheck, quickcheck-instances, distributed-process-client-server >= 0.2.3, distributed-process >= 0.7.4, distributed-process-extras >= 0.3.2, distributed-process-async >= 0.2.4.1, network-transport-tcp >= 0.6.0, network-transport, list-t, stm-containers >= 0.2.15, foldl, optparse-applicative, Glob, cryptohash-sha256, text-manipulate >= 0.2.0.1 && < 0.3
37+ Build-Depends: base>=4.8 && < 4.15, ghc-paths, mtl, containers, unordered-containers, hashable, haskeline, directory, MonadRandom, random-shuffle, uuid >= 1.3.12, cassava >= 0.4.5.1 && < 0.6, text, bytestring, deepseq, deepseq-generics, vector, parallel, monad-parallel, exceptions, transformers, gnuplot, binary, filepath, zlib, directory, vector-binary-instances, temporary, stm, time, hashable-time, old-locale, rset, attoparsec, either, base64-bytestring, data-interval, extended-reals, network-transport, aeson >= 1.1, path-pieces, conduit, resourcet, http-api-data, semigroups, QuickCheck, quickcheck-instances, distributed-process-client-server >= 0.2.3, distributed-process >= 0.7.4, distributed-process-extras >= 0.3.2, distributed-process-async >= 0.2.4.1, network-transport-tcp >= 0.6.0, network-transport, list-t, stm-containers >= 0.2.15, foldl, optparse-applicative, Glob, cryptohash-sha256, text-manipulate >= 0.2.0.1 && < 0.3
38 if flag(haskell-scripting)
38 if flag(haskell-scripting)
39− Build-Depends: ghc >= 8.2 && < 8.9
39+ Build-Depends: ghc >= 8.2 && < 8.11
40 CPP-Options: -DPM36_HASKELL_SCRIPTING
40 CPP-Options: -DPM36_HASKELL_SCRIPTING
41 if impl(ghc>= 8) && flag(haskell-scripting)
41 if impl(ghc>= 8) && flag(haskell-scripting)
42 build-depends:
42 build-depends:
@@ -140,7 +140,7 @@ Library
140
140
141Executable tutd
141Executable tutd
142 if flag(haskell-scripting)
142 if flag(haskell-scripting)
143− Build-Depends: ghc >= 8.2 && < 8.9
143+ Build-Depends: ghc >= 8.2 && < 8.11
144 Build-Depends: base >=4.8 && <5.0,
144 Build-Depends: base >=4.8 && <5.0,
145 ghc-paths,
145 ghc-paths,
146 project-m36,
146 project-m36,
@@ -173,7 +173,7 @@ Executable tutd
173 haskeline,
173 haskeline,
174 random, MonadRandom,
174 random, MonadRandom,
175 base64-bytestring,
175 base64-bytestring,
176− optparse-applicative,
176+ optparse-applicative >= 0.16,
177 attoparsec,
177 attoparsec,
178 stm-containers >= 1.0.0,
178 stm-containers >= 1.0.0,
179 list-t,
179 list-t,
@@ -205,7 +205,7 @@ Executable tutd
205
205
206Executable project-m36-server
206Executable project-m36-server
207 if flag(haskell-scripting)
207 if flag(haskell-scripting)
208− Build-Depends: ghc >= 8.2 && < 8.9
208+ Build-Depends: ghc >= 8.2 && < 8.11
209 Build-Depends: base,
209 Build-Depends: base,
210 ghc-paths,
210 ghc-paths,
211 project-m36,
211 project-m36,
src/lib/ProjectM36/ScriptSession.hs+8−2
@@ -147,7 +147,9 @@ initScriptSession ghcPkgPaths = do
147 ideclSourceSrc = Nothing,
147 ideclSourceSrc = Nothing,
148#endif
148#endif
149
149
150−#if __GLASGOW_HASKELL__ >= 806
150+#if __GLASGOW_HASKELL__ >= 810
151+ ideclExt = noExtField,
152+#elif __GLASGOW_HASKELL__ >= 806
151 ideclExt = NoExt,
153 ideclExt = NoExt,
152#endif
154#endif
153 ideclName = noLoc mn,
155 ideclName = noLoc mn,
@@ -155,7 +157,11 @@ initScriptSession ghcPkgPaths = do
155 ideclSource = False,
157 ideclSource = False,
156 ideclSafe = True,
158 ideclSafe = True,
157 ideclImplicit = False,
159 ideclImplicit = False,
160+#if __GLASGOW_HASKELL__ >= 810
158− ideclQualified = isJust mQual,
161+ ideclQualified = if isJust mQual then QualifiedPre else NotQualified,
162+#else
163+ ideclQualified = isJust mQual
164+#endif
159 ideclAs = mQual,
165 ideclAs = mQual,
160 ideclHiding = Nothing
166 ideclHiding = Nothing
161 }
167 }
src/lib/ProjectM36/Server/ParseArgs.hs+1−1
@@ -73,7 +73,7 @@ parseConfigWithDefaults defaults = execParser (info (parseArgsWithDefaults defau
73
73
74
74
75helpOption :: Parser (a -> a)
75helpOption :: Parser (a -> a)
76−helpOption = abortOption ShowHelpText $ mconcat
76+helpOption = abortOption (ShowHelpText Nothing) $ mconcat
77 [ long "help"
77 [ long "help"
78 , help "Show this help text"
78 , help "Show this help text"
79 , hidden ]
79 , hidden ]