packages feed

structs 0.1.4 → 0.1.5

raw patch · 7 files changed

+15/−97 lines, 7 filesdep −directorydep −doctestdep −filepathdep ~basesetup-changedPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies removed: directory, doctest, filepath, parallel

Dependency ranges changed: base

API changes (from Hackage documentation)

- Data.Struct.Internal.LinkCut: LinkCut :: Object s_akVL -> LinkCut a_akVK s_akVL
+ Data.Struct.Internal.LinkCut: LinkCut :: Object s_afjs -> LinkCut a_afjr s_afjs
- Data.Struct.Internal.LinkCut: allocLinkCut :: forall a_akVK. forall m_akVU. PrimMonad m_akVU => m_akVU (LinkCut a_akVK (PrimState m_akVU))
+ Data.Struct.Internal.LinkCut: allocLinkCut :: forall a_afjr. forall m_afjB. PrimMonad m_afjB => m_afjB (LinkCut a_afjr (PrimState m_afjB))
- Data.Struct.Internal.LinkCut: left :: forall a_akVK. Slot (LinkCut a_akVK) (LinkCut a_akVK)
+ Data.Struct.Internal.LinkCut: left :: forall a_afjr. Slot (LinkCut a_afjr) (LinkCut a_afjr)
- Data.Struct.Internal.LinkCut: newLinkCut :: forall a_akVK. forall m_akVT. PrimMonad m_akVT => LinkCut a_akVK (PrimState m_akVT) -> LinkCut a_akVK (PrimState m_akVT) -> LinkCut a_akVK (PrimState m_akVT) -> LinkCut a_akVK (PrimState m_akVT) -> a_akVK -> a_akVK -> m_akVT (LinkCut a_akVK (PrimState m_akVT))
+ Data.Struct.Internal.LinkCut: newLinkCut :: forall a_afjr. forall m_afjA. PrimMonad m_afjA => LinkCut a_afjr (PrimState m_afjA) -> LinkCut a_afjr (PrimState m_afjA) -> LinkCut a_afjr (PrimState m_afjA) -> LinkCut a_afjr (PrimState m_afjA) -> a_afjr -> a_afjr -> m_afjA (LinkCut a_afjr (PrimState m_afjA))
- Data.Struct.Internal.LinkCut: newtype LinkCut a_akVK s_akVL
+ Data.Struct.Internal.LinkCut: newtype LinkCut a_afjr s_afjs
- Data.Struct.Internal.LinkCut: parent :: forall a_akVK. Slot (LinkCut a_akVK) (LinkCut a_akVK)
+ Data.Struct.Internal.LinkCut: parent :: forall a_afjr. Slot (LinkCut a_afjr) (LinkCut a_afjr)
- Data.Struct.Internal.LinkCut: path :: forall a_akVK. Slot (LinkCut a_akVK) (LinkCut a_akVK)
+ Data.Struct.Internal.LinkCut: path :: forall a_afjr. Slot (LinkCut a_afjr) (LinkCut a_afjr)
- Data.Struct.Internal.LinkCut: right :: forall a_akVK. Slot (LinkCut a_akVK) (LinkCut a_akVK)
+ Data.Struct.Internal.LinkCut: right :: forall a_afjr. Slot (LinkCut a_afjr) (LinkCut a_afjr)
- Data.Struct.Internal.LinkCut: summary :: forall a_akVK. Field (LinkCut a_akVK) a_akVK
+ Data.Struct.Internal.LinkCut: summary :: forall a_afjr. Field (LinkCut a_afjr) a_afjr
- Data.Struct.Internal.LinkCut: value :: forall a_akVK. Field (LinkCut a_akVK) a_akVK
+ Data.Struct.Internal.LinkCut: value :: forall a_afjr. Field (LinkCut a_afjr) a_afjr
- Data.Struct.LinkCut: data LinkCut a_akVK s_akVL
+ Data.Struct.LinkCut: data LinkCut a_afjr s_afjs

Files

CHANGELOG.markdown view
@@ -1,3 +1,9 @@+## 0.1.5 [2021.02.17]+* The build-type has been changed from `Custom` to `Simple`.+  To achieve this, the `doctests` test suite has been removed in favor of using+  [`cabal-docspec`](https://github.com/phadej/cabal-extras/tree/master/cabal-docspec)+  to run the doctests.+ ## 0.1.4 [2020.10.02] * Allow building with `template-haskell-2.17.0.0` (GHC 9.0). 
README.markdown view
@@ -1,7 +1,7 @@ structs ========== -[![Hackage](https://img.shields.io/hackage/v/structs.svg)](https://hackage.haskell.org/package/structs) [![Build Status](https://secure.travis-ci.org/ekmett/structs.png?branch=master)](http://travis-ci.org/ekmett/structs)+[![Hackage](https://img.shields.io/hackage/v/structs.svg)](https://hackage.haskell.org/package/structs) [![Build Status](https://github.com/ekmett/structs/workflows/Haskell-CI/badge.svg)](https://github.com/ekmett/structs/actions?query=workflow%3AHaskell-CI)  This package explores strict mutable data structures in Haskell. 
Setup.lhs view
@@ -1,34 +1,7 @@-\begin{code}-{-# LANGUAGE CPP #-}-{-# OPTIONS_GHC -Wall #-}-module Main (main) where--#ifndef MIN_VERSION_cabal_doctest-#define MIN_VERSION_cabal_doctest(x,y,z) 0-#endif--#if MIN_VERSION_cabal_doctest(1,0,0)--import Distribution.Extra.Doctest ( defaultMainWithDoctests )-main :: IO ()-main = defaultMainWithDoctests "doctests"--#else--#ifdef MIN_VERSION_Cabal--- If the macro is defined, we have new cabal-install,--- but for some reason we don't have cabal-doctest in package-db------ Probably we are running cabal sdist, when otherwise using new-build--- workflow-import Warning ()-#endif--import Distribution.Simple--main :: IO ()-main = defaultMain+#!/usr/bin/runhaskell+> module Main (main) where -#endif+> import Distribution.Simple -\end{code}+> main :: IO ()+> main = defaultMain
− Warning.hs
@@ -1,5 +0,0 @@-module Warning-  {-# WARNING ["You are configuring this package without cabal-doctest installed.",-               "The doctests test-suite will not work as a result.",-               "To fix this, install cabal-doctest before configuring."] #-}-  () where
src/Data/Struct/Internal/Label.hs view
@@ -22,6 +22,7 @@ import Data.Word  -- $setup+-- >>> import Data.Struct.Internal -- >>> import Data.Struct.Internal.Label  #ifdef HLINT
structs.cabal view
@@ -1,6 +1,6 @@ name:          structs category:      Data-version:       0.1.4+version:       0.1.5 license:       BSD3 cabal-version: 1.22 license-file:  LICENSE@@ -10,7 +10,7 @@ homepage:      http://github.com/ekmett/structs/ bug-reports:   http://github.com/ekmett/structs/issues copyright:     Copyright (C) 2015-2017 Edward A. Kmett-build-type:    Custom+build-type:    Simple tested-with:   GHC == 8.0.2              , GHC == 8.2.2              , GHC == 8.4.4@@ -25,23 +25,11 @@   .hlint.yaml   CHANGELOG.markdown   README.markdown-  Warning.hs -custom-setup-  setup-depends:-    base          >= 4.9 && <5,-    Cabal         >= 1.10,-    cabal-doctest >= 1.0.1 && <1.1- source-repository head   type: git   location: git://github.com/ekmett/structs.git --- You can disable the doctests test suite with -f-test-doctests-flag test-doctests-  default: True-  manual: True- library   build-depends:     base >= 4.9 && < 5,@@ -65,26 +53,6 @@   ghc-options: -Wall -fwarn-monomorphism-restriction -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fno-warn-wrong-do-bind   hs-source-dirs: src   default-language: Haskell2010--test-suite doctests-  type:           exitcode-stdio-1.0-  main-is:        doctests.hs-  ghc-options:    -Wall -threaded-  hs-source-dirs: tests-  default-language: Haskell2010--  x-doctest-options: -fobject-code--  if !flag(test-doctests)-    buildable: False-  else-    build-depends:-      base,-      directory >= 1.0,-      doctest >= 0.9.1,-      filepath,-      parallel,-      structs  test-suite unit   type: exitcode-stdio-1.0
− tests/doctests.hs
@@ -1,25 +0,0 @@--------------------------------------------------------------------------------- |--- Module      :  Main (doctests)--- Copyright   :  (C) 2012-14 Edward Kmett--- License     :  BSD-style (see the file LICENSE)--- Maintainer  :  Edward Kmett <ekmett@gmail.com>--- Stability   :  provisional--- Portability :  portable------ This module provides doctests for a project based on the actual versions--- of the packages it was built with. It requires a corresponding Setup.lhs--- to be added to the project-------------------------------------------------------------------------------module Main where--import Build_doctests (flags, pkgs, module_sources)-import Data.Foldable (traverse_)-import Test.DocTest--main :: IO ()-main = do-    traverse_ putStrLn args-    doctest args-  where-    args = flags ++ pkgs ++ module_sources