Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
build: rename package
Browse files Browse the repository at this point in the history
Rename package and main library to 'mcsp-algorithms'. Also, updates
description and bump version to 0.0.2.
  • Loading branch information
marmitar committed Aug 31, 2023
1 parent 6b1bdce commit a8b689f
Showing 1 changed file with 56 additions and 56 deletions.
112 changes: 56 additions & 56 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MCSP-Algorithms
version: 0.0.1
name: mcsp-algorithms
version: 0.0.2
github: Problemas-de-Particao-de-Strings/MCSP-Algorithms
license: MIT
author:
Expand All @@ -16,10 +16,10 @@ extra-source-files:
synopsis: Algorithms for Minimum Common String Partition (MCSP) in Haskell.
category: College,MCSP,Algorithms,String,Partition

# 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/Problemas-de-Particao-de-Strings/MCSP-Algorithms#readme>
# 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/Problemas-de-Particao-de-Strings/MCSP-Algorithms#readme>.
# Using modern Haskell features
language: GHC2021
Expand All @@ -33,6 +33,17 @@ default-extensions:
- TypeFamilies
- ViewPatterns

library:
source-dirs: src
exposed-modules:
- MCSP.Data.Partition
- MCSP.Data.RadixTree
- MCSP.Data.String
- MCSP.Data.String.Deriving
- MCSP.Data.String.Extra
- MCSP.Heuristics.Combine
- MCSP.System.Random

dependencies:
- base >= 4.18 && < 5
- containers >= 0.6.7 && < 1
Expand All @@ -45,89 +56,78 @@ dependencies:
- vector >= 0.13 && < 1
- vector-th-unbox >= 0.2.2 && < 1

ghc-options:
# Optimization flags
- -O2
- -fasm-shortcutting
- -fdicts-strict
- -fexpose-all-unfoldings
- -flate-dmd-anal
- -flate-specialise
- -fpedantic-bottoms
- -fregs-iterative
- -fspecialise-aggressively
# Additional warnings
- -Wall
- -Wcompat
- -Wderiving-defaults
- -Widentities
- -Winaccessible-code
- -Wincomplete-patterns
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
- -Wmissed-specialisations
- -Wmissing-deriving-strategies
- -Wmissing-signatures
- -Wmissing-export-lists
- -Wmissing-home-modules
- -Woverflowed-literals
- -Wpartial-fields
- -Wredundant-constraints

library:
source-dirs: src
exposed-modules:
- MCSP.Data.Partition
- MCSP.Data.RadixTree
- MCSP.Data.String
- MCSP.Data.String.Deriving
- MCSP.Data.String.Extra
- MCSP.Heuristics.Combine
- MCSP.System.Random

internal-libraries:
mcsp-test-lib:
source-dirs: test/lib
exposed-modules:
- MCSP.TestLib.Heuristics
dependencies:
- MCSP-Algorithms
- mcsp-algorithms

executables:
playground:
main: Main.hs
source-dirs: app
dependencies:
- mcsp-algorithms
ghc-options:
- -threaded
- -feager-blackholing
- -rtsopts
- -with-rtsopts=-N
dependencies:
- MCSP-Algorithms

tests:
spec:
main: Spec.hs
source-dirs: test
dependencies:
- mcsp-algorithms
- mcsp-test-lib
ghc-options:
- -threaded
- -feager-blackholing
- -rtsopts
- -with-rtsopts=-N
dependencies:
- MCSP-Algorithms
- mcsp-test-lib

benchmarks:
bench:
main: Bench.hs
source-dirs: bench
dependencies:
- mcsp-algorithms
- mcsp-test-lib
- criterion >= 1.6.3.0 && < 2
ghc-options:
- -threaded
- -feager-blackholing
- -rtsopts
- -with-rtsopts=-N
dependencies:
- MCSP-Algorithms
- mcsp-test-lib
- criterion >= 1.6.3.0 && < 2

ghc-options:
# Optimization flags
- -O2
- -fasm-shortcutting
- -fdicts-strict
- -fexpose-all-unfoldings
- -flate-dmd-anal
- -flate-specialise
- -fpedantic-bottoms
- -fregs-iterative
- -fspecialise-aggressively
# Additional warnings
- -Wall
- -Wcompat
- -Wderiving-defaults
- -Widentities
- -Winaccessible-code
- -Wincomplete-patterns
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
- -Wmissed-specialisations
- -Wmissing-deriving-strategies
- -Wmissing-signatures
- -Wmissing-export-lists
- -Wmissing-home-modules
- -Woverflowed-literals
- -Wpartial-fields
- -Wredundant-constraints

0 comments on commit a8b689f

Please sign in to comment.