Switch from stack and hpack to plain cabal-install

This commit is contained in:
Alexis King 2022-01-07 13:30:40 -06:00
parent 87403cc229
commit 0d1346b258
8 changed files with 150 additions and 122 deletions

4
.gitignore vendored
View File

@ -1,2 +1,2 @@
.stack-work/
*.cabal
/dist-newstyle
/cabal.project.local

12
cabal.project Normal file
View File

@ -0,0 +1,12 @@
packages: .
jobs: $ncpus
package *
haddock-html: true
haddock-hoogle: true
haddock-hyperlink-source: true
haddock-quickjump: true
package freer-simple
ghc-options: -j
haddock-options: "--optghc=-Wno-unused-imports"

136
freer-simple.cabal Normal file
View File

@ -0,0 +1,136 @@
cabal-version: 2.4
name: freer-simple
version: 1.2.1.1
category: Control
build-type: Simple
synopsis: A friendly effect system for Haskell.
description:
An implementation of an effect system for Haskell (a fork of
<http://hackage.haskell.org/package/freer-effects freer-effects>), which is
based on the work of Oleg Kiselyov et al.:
.
* <http://okmij.org/ftp/Haskell/extensible/more.pdf Freer Monads, More Extensible Effects>
* <http://okmij.org/ftp/Haskell/zseq.pdf Reflection without Remorse>
* <http://okmij.org/ftp/Haskell/extensible/exteff.pdf Extensible Effects>
.
The key features are:
.
* An efficient effect system for Haskell - as a library!
* Reimplementations of several common Haskell monad transformers as effects.
* Core components for defining your own Effects.
author: Allele Dev, Ixcom Core Team, Alexis King, and other contributors
maintainer: Alexis King <lexi.lambda@gmail.com>
copyright: 2016 Allele Dev; 2017 Ixperta Solutions s.r.o.; 2017 Alexis King
license: BSD-3-Clause
license-file: LICENSE
homepage: https://github.com/lexi-lambda/freer-simple
bug-reports: https://github.com/lexi-lambda/freer-simple/issues
source-repository head
type: git
location: https://github.com/lexi-lambda/freer-simple
extra-source-files:
CHANGELOG.md
README.md
common common
ghc-options:
-Wall
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
default-language: Haskell2010
default-extensions:
ConstraintKinds
DataKinds
DeriveFunctor
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
LambdaCase
MultiParamTypeClasses
RankNTypes
ScopedTypeVariables
TypeApplications
TypeOperators
build-depends: base >= 4.9 && < 5
library
import: common
hs-source-dirs: src
exposed-modules:
Control.Monad.Freer
Control.Monad.Freer.Coroutine
Control.Monad.Freer.Error
Control.Monad.Freer.Fresh
Control.Monad.Freer.Internal
Control.Monad.Freer.NonDet
Control.Monad.Freer.Reader
Control.Monad.Freer.State
Control.Monad.Freer.TH
Control.Monad.Freer.Trace
Control.Monad.Freer.Writer
Data.FTCQueue
Data.OpenUnion
Data.OpenUnion.Internal
build-depends:
, natural-transformation >= 0.2
, transformers-base
, template-haskell >= 2.11 && < 2.19
executable freer-simple-examples
import: common
hs-source-dirs: examples/src
main-is: Main.hs
other-modules:
Capitalize
Console
Coroutine
Fresh
Trace
build-depends: freer-simple
test-suite freer-simple-test
import: common
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: Tests.hs
other-modules:
Tests.Coroutine
Tests.Exception
Tests.Fresh
Tests.Loop
Tests.NonDet
Tests.Reader
Tests.State
Tests.TH
build-depends:
, QuickCheck
, freer-simple
, tasty
, tasty-hunit
, tasty-quickcheck
benchmark freer-simple-bench
import: common
type: exitcode-stdio-1.0
hs-source-dirs: bench
main-is: Core.hs
ghc-options: -O2
build-depends:
, criterion
, extensible-effects
, free
, freer-simple
, mtl

View File

@ -1,90 +0,0 @@
name: freer-simple
version: 1.2.1.1
category: Control
synopsis: Implementation of a friendly effect system for Haskell.
description: |
An implementation of an effect system for Haskell (a fork of
<http://hackage.haskell.org/package/freer-effects freer-effects>), which is
based on the work of Oleg Kiselyov et al.:
* <http://okmij.org/ftp/Haskell/extensible/more.pdf Freer Monads, More Extensible Effects>
* <http://okmij.org/ftp/Haskell/zseq.pdf Reflection without Remorse>
* <http://okmij.org/ftp/Haskell/extensible/exteff.pdf Extensible Effects>
The key features are:
* An efficient effect system for Haskell - as a library!
* Reimplementations of several common Haskell monad transformers as effects.
* Core components for defining your own Effects.
github: lexi-lambda/freer-simple
license: BSD3
author: Allele Dev, Ixcom Core Team, Alexis King, and other contributors
maintainer: Alexis King <lexi.lambda@gmail.com>
copyright: (c) 2016 Allele Dev; 2017 Ixperta Solutions s.r.o.; 2017 Alexis King
extra-source-files:
- CHANGELOG.md
- README.md
ghc-options:
- -Wall
- -Wcompat
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
- -Wredundant-constraints
default-extensions:
- ConstraintKinds
- DataKinds
- DeriveFunctor
- FlexibleContexts
- FlexibleInstances
- FunctionalDependencies
- GADTs
- LambdaCase
- MultiParamTypeClasses
- RankNTypes
- ScopedTypeVariables
- TypeApplications
- TypeOperators
dependencies:
- base >= 4.9 && < 5
library:
source-dirs: src
dependencies:
- natural-transformation >= 0.2
- transformers-base
- template-haskell >= 2.11 && < 2.19
executables:
freer-examples:
source-dirs: examples/src
main: Main.hs
dependencies:
- freer-simple
tests:
unit:
source-dirs: tests
main: Tests.hs
dependencies:
- QuickCheck
- freer-simple
- tasty
- tasty-hunit
- tasty-quickcheck
benchmarks:
core:
source-dirs: bench
main: Core.hs
ghc-options: -O2
dependencies:
- criterion
- extensible-effects
- free
- freer-simple
- mtl

View File

@ -1,4 +0,0 @@
resolver: lts-12.26
packages: [.]
extra-deps:
- extensible-effects-3.1.0.0

View File

@ -1,3 +0,0 @@
resolver: nightly-2019-10-04
packages: [.]
extra-deps: []

View File

@ -1,4 +0,0 @@
resolver: lts-14.7
packages: [.]
extra-deps:
- extensible-effects-5.0.0.1@sha256:2ed0bee04c8bf334358147da6d92ff31e9fbbefceb75ef3e408a0d858aec0cc6,9013

View File

@ -1,19 +0,0 @@
# 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:
- completed:
hackage: extensible-effects-5.0.0.1@sha256:2ed0bee04c8bf334358147da6d92ff31e9fbbefceb75ef3e408a0d858aec0cc6,9013
pantry-tree:
size: 3306
sha256: 4c520f1ccb76ed1d304cb5967e6679e31c907d3c0ba5d7e4a459e827b9a08173
original:
hackage: extensible-effects-5.0.0.1@sha256:2ed0bee04c8bf334358147da6d92ff31e9fbbefceb75ef3e408a0d858aec0cc6,9013
snapshots:
- completed:
size: 523700
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/7.yaml
sha256: 8e3f3c894be74d71fa4bf085e0a8baae7e4d7622d07ea31a52736b80f8b9bb1a
original: lts-14.7