packages feed

Cabal revisions of comfort-glpk-0.0

Hackage metadata revisions edit the .cabal file after upload; each diff below is one revision.

revision 1
-Cabal-Version:    2.2-Name:             comfort-glpk-Version:          0.0-License:          BSD-3-Clause-License-File:     LICENSE-Author:           Henning Thielemann <haskell@henning-thielemann.de>-Maintainer:       Henning Thielemann <haskell@henning-thielemann.de>-Category:         Math-Tested-With:      GHC ==8.6.5-Build-Type:       Simple-Synopsis:         Linear Programming using GLPK and comfort-array-Description:-  Simple interface to linear programming functions provided by GLPK-  using the flexible Array shape framework from @comfort-array@.-  .-  E.g. you can use @Shape.Tuple@ to convert safely-  between nested tuples and arrays with the same number of elements.-  .-  > type X = Shape.Element-  > type PairShape = Shape.NestedTuple Shape.TupleIndex (X,X)-  >-  > case Shape.indexTupleFromShape (Shape.static :: PairShape) of-  >   (posIx,negIx) ->-  >     case mapSnd (mapSnd Array.toTuple) <$>-  >          LP.simplex [] [[1.*posIx, (-1).*negIx] ==. 314]-  >            (LP.Minimize,-  >             Array.fromTuple (23,42) :: Array PairShape Double)-  >       of-  >         (Right (LP.Optimal, (absol, (pos, neg)))) ->-  >           printf "absol %f,  pos %f, neg %f\n" absol pos neg-  >         _ -> fail "GLPK solver failed"-  .-  Alternatives: @hmatrix-glpk@, @glpk-hs@--Source-Repository this-  Tag:         0.0-  Type:        darcs-  Location:    https://hub.darcs.net/thielema/comfort-glpk/--Source-Repository head-  Type:        darcs-  Location:    https://hub.darcs.net/thielema/comfort-glpk/--Library-  Build-Depends:-    glpk-headers >=0.4.1 && <0.5,-    comfort-array >=0.4 && <0.6,-    deepseq >=1.3 && <1.5,-    non-empty >=0.3.2 && <0.4,-    utility-ht >=0.0.16 && <0.1,-    base >=4.5 && <5--  GHC-Options:      -Wall-  Hs-Source-Dirs:   src-  Default-Language: Haskell98-  Extra-Libraries: glpk-  Exposed-modules:-    Numeric.GLPK--Test-Suite comfort-glpk-test-  Type:             exitcode-stdio-1.0-  Build-Depends:-    comfort-glpk,-    comfort-array >=0.5.2,-    utility-ht,-    doctest-exitcode-stdio >=0.0 && <0.1,-    doctest-lib >=0.1 && <0.2,-    QuickCheck >=2.1 && <3,-    base >=4.5 && <5--  GHC-Options:      -Wall-  Hs-Source-Dirs:   test-  Default-Language: Haskell98-  Main-Is: Main.hs-  Other-Modules:-    Test.Numeric.GLPK+Cabal-Version:    2.2
+Name:             comfort-glpk
+Version:          0.0
+x-revision: 1
+License:          BSD-3-Clause
+License-File:     LICENSE
+Author:           Henning Thielemann <haskell@henning-thielemann.de>
+Maintainer:       Henning Thielemann <haskell@henning-thielemann.de>
+Category:         Math
+Tested-With:      GHC ==8.6.5
+Build-Type:       Simple
+Synopsis:         Linear Programming using GLPK and comfort-array
+Description:
+  Simple interface to linear programming functions provided by GLPK
+  using the flexible Array shape framework from @comfort-array@.
+  .
+  E.g. you can use @Shape.Tuple@ to convert safely
+  between nested tuples and arrays with the same number of elements.
+  .
+  > type X = Shape.Element
+  > type PairShape = Shape.NestedTuple Shape.TupleIndex (X,X)
+  >
+  > case Shape.indexTupleFromShape (Shape.static :: PairShape) of
+  >   (posIx,negIx) ->
+  >     case mapSnd (mapSnd Array.toTuple) <$>
+  >          LP.simplex [] [[1.*posIx, (-1).*negIx] ==. 314]
+  >            (LP.Minimize,
+  >             Array.fromTuple (23,42) :: Array PairShape Double)
+  >       of
+  >         (Right (LP.Optimal, (absol, (pos, neg)))) ->
+  >           printf "absol %f,  pos %f, neg %f\n" absol pos neg
+  >         _ -> fail "GLPK solver failed"
+  .
+  Alternatives: @hmatrix-glpk@, @glpk-hs@
+
+Source-Repository this
+  Tag:         0.0
+  Type:        darcs
+  Location:    https://hub.darcs.net/thielema/comfort-glpk/
+
+Source-Repository head
+  Type:        darcs
+  Location:    https://hub.darcs.net/thielema/comfort-glpk/
+
+Library
+  Build-Depends:
+    glpk-headers >=0.4.1 && <0.6,
+    comfort-array >=0.4 && <0.6,
+    deepseq >=1.3 && <1.5,
+    non-empty >=0.3.2 && <0.4,
+    utility-ht >=0.0.16 && <0.1,
+    base >=4.5 && <5
+
+  GHC-Options:      -Wall
+  Hs-Source-Dirs:   src
+  Default-Language: Haskell98
+  Extra-Libraries: glpk
+  Exposed-modules:
+    Numeric.GLPK
+
+Test-Suite comfort-glpk-test
+  Type:             exitcode-stdio-1.0
+  Build-Depends:
+    comfort-glpk,
+    comfort-array >=0.5.2,
+    utility-ht,
+    doctest-exitcode-stdio >=0.0 && <0.1,
+    doctest-lib >=0.1 && <0.2,
+    QuickCheck >=2.1 && <3,
+    base >=4.5 && <5
+
+  GHC-Options:      -Wall
+  Hs-Source-Dirs:   test
+  Default-Language: Haskell98
+  Main-Is: Main.hs
+  Other-Modules:
+    Test.Numeric.GLPK