Skip to content

Commit

Permalink
Bump dependency version bounds
Browse files Browse the repository at this point in the history
Stackage nightly contains a package with a version outside the
previous bounds specified in `reedsolomon.cabal` for
`optparse-applicative`. Bump the version bounds accordingly.

Also, handle the API change fallout: `optparse-applicative` no longer
re-exports a version of `<>`.
  • Loading branch information
NicolasT committed Jan 13, 2017
1 parent e61efa9 commit 495369d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions bench/profiling.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import Text.Printf (printf)
import System.Random (Random(random), RandomGen, getStdGen)

import Options.Applicative
#if MIN_VERSION_optparse_applicative(0, 13, 0)
import Data.Monoid ((<>))
#endif

import System.Clock (Clock(Monotonic), TimeSpec(sec, nsec), getTime, diffTimeSpec)

Expand Down
3 changes: 3 additions & 0 deletions examples/simple-decoder.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
> import System.IO.Posix.MMap (unsafeMMapFile)
>
> import Options.Applicative
#if MIN_VERSION_optparse_applicative(0, 13, 0)
> import Data.Monoid ((<>))
#endif
>
> import qualified Data.ByteString as BS
>
Expand Down
3 changes: 3 additions & 0 deletions examples/simple-encoder.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
> import qualified Data.Vector.Generic as V
>
> import Options.Applicative
#if MIN_VERSION_optparse_applicative(0, 13, 0)
> import Data.Monoid ((<>))
#endif
>
> import System.IO.Posix.MMap (unsafeMMapFile)
>
Expand Down
6 changes: 3 additions & 3 deletions reedsolomon.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Executable reedsolomon-simple-encoder
Build-Depends: base
, bytestring
, vector
, optparse-applicative >= 0.11 && < 0.13
, optparse-applicative >= 0.11 && < 0.14
, filepath >= 1.3 && < 1.5
, bytestring-mmap >= 0.2 && < 0.3
, reedsolomon
Expand All @@ -130,7 +130,7 @@ Executable reedsolomon-simple-decoder
Build-Depends: base
, bytestring
, vector
, optparse-applicative >= 0.11 && < 0.13
, optparse-applicative >= 0.11 && < 0.14
, filepath >= 1.3 && < 1.5
, bytestring-mmap >= 0.2 && < 0.3
, reedsolomon
Expand Down Expand Up @@ -170,7 +170,7 @@ Executable reedsolomon-profiling
, vector
, deepseq >= 1.3 && < 1.5
, random >= 1.1 && < 1.2
, optparse-applicative >= 0.11 && < 0.13
, optparse-applicative >= 0.11 && < 0.14
, clock >= 0.4 && < 0.8
, reedsolomon
else
Expand Down

0 comments on commit 495369d

Please sign in to comment.