From 4dc9143dbc83e88c708e0642d5b7354d5a10155e Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Mon, 5 Feb 2024 10:58:14 -0600 Subject: [PATCH] Update for GHC 9.4.8 --- CHANGELOG.md | 17 ++++++++ default.nix | 2 - hexstring.cabal | 109 ++++++++++++++++++++++++------------------------ package.yaml | 42 +++++++++++++++++++ shell.nix | 2 - stack.yaml | 4 ++ 6 files changed, 118 insertions(+), 58 deletions(-) create mode 100644 CHANGELOG.md delete mode 100644 default.nix create mode 100644 package.yaml delete mode 100644 shell.nix create mode 100644 stack.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..3e74184 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,17 @@ +# Changelog for haskell-hexstring + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.12.0] + +### Added + +- CHANGELOG.md +- Stack integration + +### Changed + +- Update to Haskell LTS 21.22 diff --git a/default.nix b/default.nix deleted file mode 100644 index 9bcb885..0000000 --- a/default.nix +++ /dev/null @@ -1,2 +0,0 @@ -{ nixpkgs ? import {}, compiler ? "ghc7101" }: -nixpkgs.haskellPackages.callPackage ./hexstring.nix { } diff --git a/hexstring.cabal b/hexstring.cabal index 654ea45..56b5d84 100644 --- a/hexstring.cabal +++ b/hexstring.cabal @@ -1,59 +1,60 @@ -name: hexstring -category: Data -version: 0.11.1 -license: MIT -license-file: LICENSE -copyright: (c) 2015 Leon Mergen -author: Leon Mergen -maintainer: leon@solatis.com -homepage: http://www.leonmergen.com/opensource.html -bug-reports: http://github.com/solatis/haskell-hexstring/issues -stability: experimental -synopsis: Fast and safe representation of a hex string -description: - Provides an interface for converting any object that has a 'Binary' instance - to and from a hexadecimal Text representation. - -build-type: Simple -data-files: LICENSE, README.md -cabal-version: >= 1.10 -tested-with: GHC == 7.6, GHC == 7.8, GHC == 7.10 +cabal-version: 1.12 -library - hs-source-dirs: src - ghc-options: -Wall -ferror-spans - default-language: Haskell2010 +-- This file has been generated from package.yaml by hpack version 0.36.0. +-- +-- see: https://github.com/sol/hpack - exposed-modules: Data.HexString - - build-depends: base >= 4.3 && < 5 - , binary - , text - , bytestring - , base16-bytestring - , aeson - -test-suite test-suite - type: exitcode-stdio-1.0 - ghc-options: -Wall -ferror-spans -threaded -auto-all -caf-all -fno-warn-type-defaults - default-language: Haskell2010 - hs-source-dirs: test - main-is: Main.hs - - other-modules: Data.HexStringSpec - Spec - Main - - build-depends: base >= 4.3 && < 5 - , hspec - , text - - , bytestring - , binary - - , hexstring +name: hexstring +version: 0.12.0 +synopsis: Fast and safe representation of a hex string +description: Provides an interface for converting any object that has a 'Binary' instance to and from a hexadecimal Text representation. +author: Rene Vergara, + Leon Mergen +maintainer: pitmutt@vergara.tech +copyright: (c) 2015 Leon Mergen, + (c) 2024 Rene Vergara +license: MIT +license-file: LICENSE +build-type: Simple +extra-source-files: + README.md source-repository head type: git - location: git://github.com/solatis/haskell-bitcoin-script.git - branch: master + location: https://git.vergara.tech/Vergara_Tech/haskell-hexstring + +library + exposed-modules: + Data.HexString + other-modules: + Paths_hexstring + hs-source-dirs: + src + build-depends: + aeson + , base >=4.7 && <5 + , base16-bytestring + , binary + , bytestring + , text + default-language: Haskell2010 + +test-suite hextring-test + type: exitcode-stdio-1.0 + main-is: Main.hs + other-modules: + Data.HexStringSpec + Spec + Paths_hexstring + hs-source-dirs: + test + build-depends: + aeson + , base >=4.7 && <5 + , base16-bytestring + , binary + , bytestring + , hexstring + , hspec + , text + default-language: Haskell2010 diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..680f2d2 --- /dev/null +++ b/package.yaml @@ -0,0 +1,42 @@ +name: hexstring +version: 0.12.0 +git: "https://git.vergara.tech/Vergara_Tech/haskell-hexstring" +license: MIT +author: + - "Rene Vergara" + - "Leon Mergen" +maintainer: "pitmutt@vergara.tech" +copyright: + - "(c) 2015 Leon Mergen" + - "(c) 2024 Rene Vergara" + +extra-source-files: +- README.md + +synopsis: Fast and safe representation of a hex string +description: Provides an interface for converting any object that has a 'Binary' instance to and from a hexadecimal Text representation. + +dependencies: +- base >= 4.7 && < 5 + +library: + source-dirs: src + dependencies: + - binary + - text + - bytestring + - base16-bytestring + - aeson + +tests: + hextring-test: + main: Main.hs + source-dirs: test + dependencies: + - hexstring + - binary + - text + - bytestring + - base16-bytestring + - aeson + - hspec diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 8f5b30a..0000000 --- a/shell.nix +++ /dev/null @@ -1,2 +0,0 @@ -{ nixpkgs ? import {}, compiler ? "ghc7101" }: -(import ./default.nix { inherit nixpkgs compiler; }).env diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..346aa08 --- /dev/null +++ b/stack.yaml @@ -0,0 +1,4 @@ +resolver: lts-21.22 + +packages: + - .