cabal-helper 0.3.3.0 → 0.3.4.0
raw patch · 4 files changed
+17/−3 lines, 4 filesdep +cabal-helperPVP ok
version bump matches the API change (PVP)
Dependencies added: cabal-helper
API changes (from Hackage documentation)
+ Distribution.Helper: instance MonadIO m => MonadIO (Query m)
Files
- CabalHelper/Wrapper.hs +1/−1
- Distribution/Helper.hs +1/−1
- cabal-helper.cabal +11/−1
- tests/Spec.hs +4/−0
CabalHelper/Wrapper.hs view
@@ -219,7 +219,7 @@ \ $ cabal clean && cabal configure\n\ \ You might also have to install some version of the Cabal to do this:\n\ \ $ cabal install Cabal\n\-\\n" sver (distdir </> "setup-config") sver sver+\\n" sver sver where sver = showVersion cabalVer
Distribution/Helper.hs view
@@ -98,7 +98,7 @@ -- running all possible queries against it at once is cheap. newtype Query m a = Query { unQuery :: StateT (Maybe SomeLocalBuildInfo) (ReaderT (Programs, FilePath) m) a }- deriving (Functor, Applicative, Monad)+ deriving (Functor, Applicative, Monad, MonadIO) type MonadQuery m = ( MonadIO m , MonadState (Maybe SomeLocalBuildInfo) m
cabal-helper.cabal view
@@ -1,5 +1,5 @@ name: cabal-helper-version: 0.3.3.0+version: 0.3.4.0 synopsis: Simple interface to Cabal's configuration state used by ghc-mod description: @cabal-helper@ provides a library which wraps the internal use of executables@@ -73,3 +73,13 @@ , transformers , template-haskell , temporary+++Test-Suite spec+ Default-Language: Haskell2010+ Type: exitcode-stdio-1.0+ Main-Is: Spec.hs+ Hs-Source-Dirs: tests+ GHC-Options: -Wall+ Build-Depends: base >= 4.5 && < 5+ , cabal-helper
+ tests/Spec.hs view
@@ -0,0 +1,4 @@+import Distribution.Helper++main = do+ writeAutogenFiles "./dist"