From 71f2eb7cda0ed689c55d3e9d3fb2621fff5394f2 Mon Sep 17 00:00:00 2001 From: Tiago de Paula Date: Wed, 30 Aug 2023 22:31:00 -0300 Subject: [PATCH] build: rename package Rename package and main library to 'mcsp-algorithms'. Also, updates description and bump version to 0.0.2. --- package.yaml | 112 +++++++++++++++++++++++++-------------------------- 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/package.yaml b/package.yaml index 1fb2528..7600846 100644 --- a/package.yaml +++ b/package.yaml @@ -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: @@ -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 +# 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 . # Using modern Haskell features language: GHC2021 @@ -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 @@ -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