Skip to content

Commit

Permalink
Re-add stack
Browse files Browse the repository at this point in the history
  • Loading branch information
rasheedja committed Jul 29, 2023
1 parent 2e6845a commit 785283f
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 24 deletions.
49 changes: 49 additions & 0 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: simplex-method
version: 0.1.0.0
github: "rasheedja/simplex-method"
license: BSD3
author: "Junaid Rasheed"
maintainer: "[email protected]"
copyright: "BSD-3"

extra-source-files:
- README.md
- ChangeLog.md

# Metadata used when publishing your package
synopsis: Implementation of the two-phase simplex method in exact rational arithmetic
category: Math, Maths, Mathematics, Optimisation, Optimization, Linear Programming

# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: Please see the README on GitHub at <https://github.com/rasheedja/simplex-method#readme>

dependencies:
- base >= 4.14 && < 5
- containers >= 0.6.5.1 && < 0.7
- generic-lens >= 2.2.0 && < 2.3
- lens >= 5.1.0 && < 5.2

default-extensions:
DataKinds
DeriveFunctor
DeriveGeneric
DuplicateRecordFields
FlexibleContexts
LambdaCase
OverloadedLabels
RecordWildCards
TupleSections
TypeApplications
ImportQualifiedPost

library:
source-dirs: src

tests:
simplex-haskell-test:
main: Spec.hs
source-dirs: test
dependencies:
- simplex-method
42 changes: 18 additions & 24 deletions simplex-method.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.6
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.34.4.
-- This file has been generated from package.yaml by hpack version 0.35.1.
--
-- see: https://github.com/sol/hpack

Expand All @@ -14,7 +14,7 @@ bug-reports: https://github.com/rasheedja/simplex-method/issues
author: Junaid Rasheed
maintainer: [email protected]
copyright: BSD-3
license: BSD-3-Clause
license: BSD3
license-file: LICENSE
build-type: Simple
extra-source-files:
Expand All @@ -25,45 +25,39 @@ source-repository head
type: git
location: https://github.com/rasheedja/simplex-method

common common-extensions
default-extensions:
DataKinds
DeriveFunctor
DeriveGeneric
DuplicateRecordFields
FlexibleContexts
LambdaCase
OverloadedLabels
RecordWildCards
TupleSections
TypeApplications
ImportQualifiedPost
library
import: common-extensions
exposed-modules:
Linear.Simplex.Prettify
Linear.Simplex.Simplex
Linear.Simplex.Types
Linear.Simplex.Util
other-modules:
Paths_simplex_method
hs-source-dirs:
src
default-extensions:
DataKinds DeriveFunctor DeriveGeneric DuplicateRecordFields FlexibleContexts LambdaCase OverloadedLabels RecordWildCards TupleSections TypeApplications ImportQualifiedPost
build-depends:
base
, containers
, generic-lens
, lens
base >=4.14 && <5
, containers >=0.6.5.1 && <0.7
, generic-lens >=2.2.0 && <2.3
, lens >=5.1.0 && <5.2
default-language: Haskell2010

test-suite simplex-haskell-test
import: common-extensions
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
TestFunctions
Paths_simplex_method
hs-source-dirs:
test
default-extensions:
DataKinds DeriveFunctor DeriveGeneric DuplicateRecordFields FlexibleContexts LambdaCase OverloadedLabels RecordWildCards TupleSections TypeApplications ImportQualifiedPost
build-depends:
base >=4.7 && <5
base >=4.14 && <5
, containers >=0.6.5.1 && <0.7
, generic-lens >=2.2.0 && <2.3
, lens >=5.1.0 && <5.2
, simplex-method
, containers
default-language: Haskell2010
68 changes: 68 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# This file was automatically generated by 'stack init'
#
# Some commonly used options have been documented as comments in this file.
# For advanced use and comprehensive documentation of the format, please see:
# https://docs.haskellstack.org/en/stable/yaml_configuration/

# Resolver to choose a 'specific' stackage snapshot or a compiler version.
# A snapshot resolver dictates the compiler version and the set of packages
# to be used for project dependencies. For example:
#
# resolver: lts-3.5
# resolver: nightly-2015-09-21
# resolver: ghc-7.10.2
#
# The location of a snapshot can be provided as a file or url. Stack assumes
# a snapshot provided as a file might change, whereas a url resource does not.
#
# resolver: ./custom-snapshot.yaml
# resolver: https://example.com/snapshots/2018-01-01.yaml
resolver: lts-20.26

# User packages to be built.
# Various formats can be used as shown in the example below.
#
# packages:
# - some-directory
# - https://example.com/foo/bar/baz-0.0.2.tar.gz
# subdirs:
# - auto-update
# - wai
packages:
- .
# Dependency packages to be pulled from upstream that are not in the resolver.
# These entries can reference officially published versions as well as
# forks / in-progress versions pinned to a git hash. For example:
#
# extra-deps:
# - acme-missiles-0.3
# - git: https://github.com/commercialhaskell/stack.git
# commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a
#
# extra-deps: {}

# Override default flag values for local packages and extra-deps
# flags: {}

# Extra package databases containing global packages
# extra-package-dbs: []

# Control whether we use the GHC we find on the path
# system-ghc: true
#
# Require a specific version of stack, using version ranges
# require-stack-version: -any # Default
# require-stack-version: ">=2.5"
#
# Override the architecture used by stack, especially useful on Windows
# arch: i386
# arch: x86_64
#
# Extra directories used by stack for building
# extra-include-dirs: [/path/to/dir]
# extra-lib-dirs: [/path/to/dir]
#
# Allow a newer minor version of GHC than the snapshot specifies
# compiler-check: newer-minor

system-ghc: true
12 changes: 12 additions & 0 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages: []
snapshots:
- completed:
sha256: 5a59b2a405b3aba3c00188453be172b85893cab8ebc352b1ef58b0eae5d248a2
size: 650475
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/26.yaml
original: lts-20.26

0 comments on commit 785283f

Please sign in to comment.