Skip to content

Commit

Permalink
WIP Clean up and reorg cabal files
Browse files Browse the repository at this point in the history
  • Loading branch information
turion committed Feb 16, 2024
1 parent 121c684 commit 8ba32d7
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 124 deletions.
52 changes: 18 additions & 34 deletions rhine-bayes/rhine-bayes.cabal
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
cabal-version: 2.2
name: rhine-bayes
version: 1.2
synopsis: monad-bayes backend for Rhine
description:
This package provides a backend to the @monad-bayes@ library,
enabling you to write stochastic processes as signal functions,
and performing online machine learning on them.
license: BSD3
license: BSD-3-Clause
license-file: LICENSE
author: Manuel Bärenz
maintainer: [email protected]
-- copyright:
category: FRP
build-type: Simple
extra-doc-files: README.md ChangeLog.md
cabal-version: 2.0

source-repository head
type: git
Expand All @@ -24,18 +24,14 @@ source-repository this
location: [email protected]:turion/rhine.git
tag: v1.1

library
exposed-modules:
FRP.Rhine.Bayes
other-modules:
Data.MonadicStreamFunction.Bayes
common opts
ghc-options: -Wall
build-depends: base >= 4.11 && < 4.18
, transformers >= 0.5
, rhine == 1.2
, dunai ^>= 0.11
, log-domain >= 0.12
, monad-bayes ^>= 1.2
hs-source-dirs: src
default-language: Haskell2010
default-extensions:
Arrows
Expand All @@ -45,44 +41,32 @@ library
FlexibleInstances
GeneralizedNewtypeDeriving
MultiParamTypeClasses
NamedFieldPuns
RankNTypes
ScopedTypeVariables
TupleSections
TypeFamilies
TypeOperators

ghc-options: -W
if flag(dev)
ghc-options: -Werror

library
import: opts
exposed-modules:
FRP.Rhine.Bayes
other-modules:
Data.MonadicStreamFunction.Bayes
hs-source-dirs: src

executable rhine-bayes-gloss
import: opts
main-is: Main.hs
hs-source-dirs: app
build-depends: base >= 4.11 && < 4.18
, rhine
, rhine-bayes
, rhine-gloss == 1.2
, dunai
, monad-bayes
, transformers
, log-domain
, mmorph
, time
default-language: Haskell2010
default-extensions:
Arrows
DataKinds
FlexibleContexts
NamedFieldPuns
RankNTypes
TupleSections
TypeApplications
TypeFamilies
TypeOperators

ghc-options: -W -threaded -rtsopts -with-rtsopts=-N
if flag(dev)
ghc-options: -Werror
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends: rhine-bayes
, rhine-gloss == 1.2
, mmorph

flag dev
description: Enable warnings as errors. Active on ci.
Expand Down
89 changes: 22 additions & 67 deletions rhine-examples/rhine-examples.cabal
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
cabal-version: 2.2
name: rhine-examples
version: 1.2
synopsis: Some simple example applications with rhine
description: Diverse console example applications with rhine
that show some of the standard components.
license: BSD3
license: BSD-3-Clause
license-file: LICENSE
author: Manuel Bärenz
maintainer: [email protected]
-- copyright:
category: FRP
build-type: Simple
extra-doc-files: ChangeLog.md
cabal-version: 2.0

executable HelloWorld
hs-source-dirs: src
main-is: HelloWorld.hs
common opts
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends: base >= 4.14 && < 4.18
, rhine == 1.2
Expand All @@ -25,100 +23,57 @@ executable HelloWorld
if flag(dev)
ghc-options: -Werror

executable HelloWorld
import: opts
hs-source-dirs: src
main-is: HelloWorld.hs

executable Demonstration
import: opts
hs-source-dirs: src
main-is: Demonstration.hs
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends: base >= 4.14 && < 4.18
, rhine == 1.2
default-language: Haskell2010
default-extensions:
TypeOperators
if flag(dev)
ghc-options: -Werror

executable ADSR
import: opts
hs-source-dirs: src
main-is: ADSR.hs
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends: base >= 4.14 && < 4.18
, rhine == 1.2
default-language: Haskell2010
default-extensions:
TypeOperators
if flag(dev)
ghc-options: -Werror

executable Ball
import: opts
hs-source-dirs: src
main-is: Ball.hs
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends: base >= 4.14 && < 4.18
, rhine == 1.2
, vector-sized >= 1.4
, random >= 1.1
default-language: Haskell2010
build-depends: vector-sized >= 1.4
, random >= 1.1
default-extensions:
Arrows
DataKinds
RankNTypes
TypeFamilies
TypeOperators
if flag(dev)
ghc-options: -Werror

executable Periodic
import: opts
hs-source-dirs: src
main-is: Periodic.hs
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends: base >= 4.14 && < 4.18
, rhine == 1.2
, transformers >= 0.5
, monad-schedule >= 0.1
default-language: Haskell2010
default-extensions:
TypeOperators
if flag(dev)
ghc-options: -Werror
build-depends: transformers >= 0.5
, monad-schedule >= 0.1

executable EventClock
import: opts
hs-source-dirs: src
main-is: EventClock.hs
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends: base >= 4.14 && < 4.18
, rhine == 1.2
, random >= 1.1
default-language: Haskell2010
default-extensions:
TypeOperators
if flag(dev)
ghc-options: -Werror
build-depends: random >= 1.1

executable Sawtooth
import: opts
hs-source-dirs: src
main-is: Sawtooth.hs
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends: base >= 4.14 && < 4.18
, rhine == 1.2
default-language: Haskell2010
default-extensions:
TypeOperators
if flag(dev)
ghc-options: -Werror

executable RandomWalk
import: opts
hs-source-dirs: src
main-is: RandomWalk.hs
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends: base >= 4.14 && < 4.18
, rhine == 1.2
, random >= 1.1
, simple-affine-space
default-language: Haskell2010
default-extensions:
TypeOperators
if flag(dev)
ghc-options: -Werror
build-depends: random >= 1.1
, simple-affine-space

flag dev
description: Enable warnings as errors. Active on ci.
Expand Down
42 changes: 20 additions & 22 deletions rhine-gloss/rhine-gloss.cabal
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
-- Initial rhine-gloss.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/

cabal-version: 2.2
name: rhine-gloss
version: 1.2
synopsis: Gloss backend for Rhine
description:
This package provides a simple wrapper for the `gloss` library,
or rather the function `Graphics.Gloss.play`,
enabling you to write `gloss` applications as signal functions.
license: BSD3
license: BSD-3-Clause
license-file: LICENSE
author: Manuel Bärenz
maintainer: [email protected]
Expand All @@ -17,7 +15,6 @@ category: FRP
build-type: Simple
extra-source-files: ChangeLog.md
extra-doc-files: README.md
cabal-version: 2.0

source-repository head
type: git
Expand All @@ -28,38 +25,39 @@ source-repository this
location: https://github.com/turion/rhine.git
tag: v1.1


library
exposed-modules:
FRP.Rhine.Gloss
FRP.Rhine.Gloss.Common
FRP.Rhine.Gloss.IO
FRP.Rhine.Gloss.Pure
FRP.Rhine.Gloss.Pure.Combined
common opts
build-depends: base >= 4.14 && < 4.18
, transformers >= 0.5
, rhine == 1.2
, dunai ^>= 0.11
, gloss >= 1.12
, mmorph >= 1.1
, monad-schedule >= 0.1
hs-source-dirs: src
, time >= 1.8
default-language: Haskell2010
default-extensions:
TypeOperators
ghc-options: -W
TupleSections
TypeOperators
ghc-options: -Wall
if flag(dev)
ghc-options: -Werror

library
import: opts
exposed-modules:
FRP.Rhine.Gloss
FRP.Rhine.Gloss.Common
FRP.Rhine.Gloss.IO
FRP.Rhine.Gloss.Pure
FRP.Rhine.Gloss.Pure.Combined
hs-source-dirs: src

executable rhine-gloss-gears
import: opts
main-is: Main.hs
ghc-options: -threaded
build-depends: base >= 4.14 && < 4.18
, rhine-gloss
build-depends: rhine-gloss
default-language: Haskell2010
ghc-options: -W -threaded -rtsopts -with-rtsopts=-N
if flag(dev)
ghc-options: -Werror
ghc-options: -threaded -rtsopts -with-rtsopts=-N

flag dev
description: Enable warnings as errors. Active on ci.
Expand Down
2 changes: 1 addition & 1 deletion rhine/rhine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ common opts
if flag(dev)
ghc-options: -Werror

ghc-options: -W
ghc-options: -Wall
-Wno-unticked-promoted-constructors

default-extensions:
Expand Down

0 comments on commit 8ba32d7

Please sign in to comment.