hasty-hamiltonian

Speedy gradient-based traversal through parameter space.
Log | Files | Refs | README | LICENSE

commit 9a6ff101f2bd99658d0f1ea49fec7a4f2d8804a8
parent 1ea6c2438995ab2b716710d56f250ff6ff09ef21
Author: Jared Tobin <jared@jtobin.ca>
Date:   Sun,  4 Dec 2016 22:07:03 +1300

Simplify constrains, add dep bounds.

Diffstat:
MCHANGELOG | 7+++++--
MNumeric/MCMC/Hamiltonian.hs | 4++--
Mhasty-hamiltonian.cabal | 10+++++-----
Mstack-travis.yaml | 4++--
Mstack.yaml | 2+-
5 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,6 @@ -- 1.1.1 - * Redesign to match the mcmc-types API. +# Changelog + +- 1.1.5 (2016-12-04) + * Simplify some constraints and add missing dependency bounds. + diff --git a/Numeric/MCMC/Hamiltonian.hs b/Numeric/MCMC/Hamiltonian.hs @@ -153,7 +153,7 @@ gzipWith f xs ys = imap (\j x -> f x (fromMaybe err (ys ^? ix j))) xs where -- The leapfrog or Stormer-Verlet integrator. leapfrogIntegrator - :: (Num (IxValue (f Double)), Num (IxValue (t Double)) + :: (Num (IxValue (f Double)) , FunctorWithIndex (Index (f Double)) t , FunctorWithIndex (Index (t Double)) f , Ixed (f Double), Ixed (t Double) @@ -171,7 +171,7 @@ leapfrogIntegrator target e l (q0, r0) = go q0 r0 l where -- A single leapfrog step. leapfrog - :: (Num (IxValue (f Double)), Num (IxValue (t Double)) + :: (Num (IxValue (f Double)) , FunctorWithIndex (Index (f Double)) t , FunctorWithIndex (Index (t Double)) f , Ixed (t Double), Ixed (f Double) diff --git a/hasty-hamiltonian.cabal b/hasty-hamiltonian.cabal @@ -1,5 +1,5 @@ name: hasty-hamiltonian -version: 1.1.3 +version: 1.1.5 synopsis: Speedy traversal through parameter space. homepage: http://github.com/jtobin/hasty-hamiltonian license: MIT @@ -49,13 +49,13 @@ library exposed-modules: Numeric.MCMC.Hamiltonian build-depends: - base < 5 + base >= 4 && < 6 , mcmc-types >= 1.0.1 , mwc-probability >= 1.0.1 , lens >= 4 && < 5 , pipes >= 4 && < 5 - , primitive - , transformers + , primitive >= 0.5 && < 1.0 + , transformers >= 0.5 && < 1.0 Test-suite booth type: exitcode-stdio-1.0 @@ -66,7 +66,7 @@ Test-suite booth -rtsopts build-depends: ad >= 4 && < 5 - , base < 5 + , base >= 4 && < 6 , mwc-probability >= 1.0.1 , hasty-hamiltonian diff --git a/stack-travis.yaml b/stack-travis.yaml @@ -2,7 +2,7 @@ flags: {} packages: - '.' extra-deps: [] -resolver: lts-5.14 -compiler: ghc-7.10.3 +resolver: lts-7.0 +compiler: ghc-8.0.1 system-ghc: false install-ghc: true diff --git a/stack.yaml b/stack.yaml @@ -2,4 +2,4 @@ flags: {} packages: - '.' extra-deps: [] -resolver: lts-5.14 +resolver: lts-7.0