Lots of changes

This commit is contained in:
2022-10-12 15:56:48 +02:00
parent a61f15df44
commit cb2dad39ec
9 changed files with 227 additions and 43 deletions

View File

@@ -22,7 +22,7 @@ maintainer: thequux@thequux.com
extra-source-files: CHANGELOG.md
common base
default-extensions: GADTs, NamedFieldPuns, ScopedTypeVariables, TemplateHaskell
default-extensions: GADTs, NamedFieldPuns, ScopedTypeVariables, TemplateHaskell, RankNTypes
default-language: Haskell2010
executable petzval-hs
@@ -37,11 +37,27 @@ executable petzval-hs
build-depends: base ^>=4.15.1.0,
ad ^>=4.5.2,
linear ^>=1.21,
lens ^>=5.2,
lens ^>=5.0,
criterion ^>=1.5,
petzval-hs
hs-source-dirs: app
executable petzval-prof
import: base
main-is: Main.hs
build-depends: base ^>=4.15.1.0,
ad ^>=4.5.2,
linear ^>=1.21,
lens ^>=5.0,
criterion ^>=1.5,
petzval-hs
hs-source-dirs: app
ghc-options:
-O2
-threaded
-fprof-auto
-rtsopts
library
import: base
exposed-modules:
@@ -50,11 +66,15 @@ library
Petzval.System
Petzval.Trace
Petzval.Calculations
Petzval.Optimization
Petzval.Types
other-modules:
Petzval.Internal.Vec
hs-source-dirs: lib
build-depends: base ^>=4.15.1.0,
lens ^>=5.2,
lens ^>=5.0,
ad ^>=4.5.2,
linear ^>=1.21,
mtl ^>=2.2
reflection ^>=2.1,
mtl ^>=2.2,
deepseq ^>=1.4